Builds a 502 response for a failed YouTube Data API request. Auth credential failures are mapped to 401 so clients can prompt reconnect.
Upstream error message or body text.
Optional
HTTP status from the YouTube API response, when known.
JSON error response for route handlers.
Builds a 502 response for a failed YouTube Data API request. Auth credential failures are mapped to 401 so clients can prompt reconnect.