Builds a 401 response for missing session auth or token refresh failure.
Human-readable failure reason.
JSON error response for route handlers.
Builds a 401 response for missing session auth or token refresh failure.