Initializer Constructor.
Method of the HTTP request.
Path of the HTTP request.
Status code from the remote HTTP server.
Error message from the remote HTTP server.
Readonly
headersReadonly
methodReadonly
pathOptional
stackReadonly
statusStatic
Optional
prepareOptional override for formatting stack traces
Static
stackHttpError
to JSON.
When you call JSON.stringify()
function on current HttpError
instance,
this HttpError.toJSON()
method would be automatically called.
Also, if response body from the remote HTTP server forms a JSON object,
this HttpError.toJSON()
method would be useful because it returns the
parsed JSON object about the message property.
JSON object of the HttpError
.
Static
capture
HTTP Error.
HttpError
is a type of error class who've been thrown by the remote HTTP server.Author
Jeongho Nam - https://github.com/samchon