Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.
Throw when a server responds with an "OAuth-style" error JSON body
HTTP/1.1 400 Bad Request
Content-Type: application/json;charset=UTF-8
Cache-Control: no-store
Pragma: no-cache
{
"error": "invalid_request"
}
• cause: Record
<string
, undefined
| JsonValue
>
The parsed JSON response body
• code: "OAUTH_RESPONSE_BODY_ERROR"
• error: string
Error code given in the JSON response
• response: Response
The "OAuth-style" error Response, its Response.bodyUsed is false
and the JSON
body is available in ResponseBodyError.cause
• status: number
HTTP Status Code of the response
• optional
error_description: string
Human-readable text providing additional information, used to assist the developer in understanding the error that occurred, given in the JSON response