Class

HttpError

HttpError(status, message)

HttpError wraps any http response which status is != 2xx.

Constructor

# new HttpError(status, message)

Create a new instance of the HttpError class.

Parameters:
Name Type Description
status number

the http status code.

message string

an error message.

Extends

  • Error

Members

number

# status

The http status code.