Class: HTTPError
Represents an HTTP Error.
Hierarchy
Error↳
HTTPError
Constructors
constructor
• new HTTPError(error, status, path, maxAge, method?)
Parameters
| Name | Type |
|---|---|
error | any |
status | number |
path | string |
maxAge | number |
method? | string |
Overrides
Error.constructor
Defined in
Properties
message
• message: string
The message of this errored request.
Overrides
Error.message
Defined in
method
• method: string
The HTTP method of this request.
Defined in
reason
• reason: string
The reason of this errored request.
Expected values are notFound, notInWar, accessDenied, accessDenied.invalidIp, privateWarLog,
badRequest, requestThrottled, inMaintenance, requestAborted and unknownException.
Defined in
status
• status: number
The HTTP status code of this request.
Defined in
path
• path: string
The path of this request.
Defined in
maxAge
• maxAge: number
Maximum number of milliseconds the results can be cached.