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.
OptionalcauseReadonlyheadersReadonlymethodMethod of the HTTP request.
ReadonlypathPath of the HTTP request.
OptionalstackReadonlystatusStatus code from the remote HTTP server.
Static OptionalprepareOptional override for formatting stack traces
StaticstackHttpError 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.
StaticcaptureCreate .stack property on a target object
OptionalconstructorOpt: Function
HTTP Error.
HttpErroris a type of error class who've been thrown by the remote HTTP server.Author
Jeongho Nam - https://github.com/samchon