Global

Methods


HttpError(url, status, responseBody)

Coerce a generic HTTP error into an Error object that is easy to grok.
Parameters:
Name Type Description
url String The API url that was requested when the error occurred
status Number | String The HTTP status code of the response
responseBody String The text of the response body

OktaApiError(url, status, responseBody)

Coerce an API error into an Error object that is easy to grok.
Parameters:
Name Type Description
url String The API url that was requested when the error occurred
status Number | String The HTTP status code of the response
responseBody Object The JSON body that is the Okta error message that was returned by the API