Methods
-
HttpError(url, status, responseBody)
-
Coerce a generic HTTP error into an Error object that is easy to grok.
Parameters:
Name Type Description urlString The API url that was requested when the error occurred statusNumber | String The HTTP status code of the response responseBodyString 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 urlString The API url that was requested when the error occurred statusNumber | String The HTTP status code of the response responseBodyObject The JSON body that is the Okta error message that was returned by the API