Class: TransportError

TransportError

new TransportError(causeopt, statusCodeopt, responseTextopt)

A TransportError is a custom Error thrown when a request to a remote server fails.

Parameters:
Name Type Attributes Default Description
cause * <optional>
null

The underlying cause of this TransportError. Though this is usually an Error, this might actually be anything and depends on the chosen Transport implementation.

statusCode Number <optional>
0

The HTTP status code sent by the server, if the request reached the server.

responseText String <optional>
null

The HTTP response sent by the server, if any.

Source:
See: