Class: AuthError

AuthError

For easy detection of an AuthError in a Promises catch handler.

new AuthError(response, body)

Create a new AuthError from a given HTTP response and body.

TODO: MA -- 2015/10/24 -- Create consistency check for statusCode

Name Type Description
response Object

The complete response object as returned from
the 'request' library

body String

The raw body of the HTTP response

Extends

Members

bodyString

The reaw body of the HTTP response

dataObject Array

The JSON decoded body of the HTTP response

responseObject

The raw response object as returned from 'request'

See:

statusCodeInt

The HTTP Status Code of the HTTP response for fast access and inspection