Class

StalksHTTPError

StalksHTTPError(code, method, path, response)

Constructor

# new StalksHTTPError(code, method, path, response)

The error that can occur on connecting to the stalks server.
Parameters:
Name Type Description
code number The HTTP error code.
method string The HTTP method use for the request.
path string The request path.
response Response The fetch response.

View Source structures/StalksHTTPError.js, line 12

Members

# message

Returns a small description of the error.

View Source structures/StalksHTTPError.js, line 45

# name

Returns the status name.

View Source structures/StalksHTTPError.js, line 24

Methods

# async getBody() → {Promise.<Object>}

Returns the body of the response.

View Source structures/StalksHTTPError.js, line 66

Promise.<Object>