@andrewscwei/http-error
v3.2.0
Published
Basic HTTP errors with status codes for Node.js
Downloads
44
Readme
node-http-error
Custom HTTP errors with status codes for Node.js, extends SuperError
.
API
HTTPError
— Generic HTTP errorHTTPBadRequestError
—HTTPError
with status400
HTTPUnauthorizedError
—HTTPError
with status401
HTTPPaymentRequiredError
—HTTPError
with status402
HTTPForbiddenError
—HTTPError
with status403
HTTPNotFoundError
—HTTPError
with status404
HTTPMethodNotAllowedError
—HTTPError
with status405
HTTPNotAcceptableError
—HTTPError
with status406
HTTPProxyAuthenticationRequiredError
—HTTPError
with status407
HTTPRequestTimeoutError
—HTTPError
with status408
HTTPConflictError
—HTTPError
with status409
HTTPGoneError
—HTTPError
with status410
HTTPLengthRequiredError
—HTTPError
with status411
HTTPPreconditionFailedError
—HTTPError
with status412
HTTPPayloadTooLargeError
—HTTPError
with status413
HTTPUriTooLongError
—HTTPError
with status414
HTTPUnsupportedMediaTypeError
—HTTPError
with status415
HTTPRangeNotSatisfiableError
—HTTPError
with status416
HTTPExpectationFailedError
—HTTPError
with status417
HTTPImATeapotError
—HTTPError
with status418
HTTPMisdirectedRequestError
—HTTPError
with status421
HTTPUnprocessableEntityError
—HTTPError
with status422
HTTPLockedError
—HTTPError
with status423
HTTPFailedDependencyError
—HTTPError
with status424
HTTPUnorderedCollectionError
—HTTPError
with status425
HTTPUpgradeRequiredError
—HTTPError
with status426
HTTPPreconditionRequiredError
—HTTPError
with status428
HTTPTooManyRequestsError
—HTTPError
with status429
HTTPRequestHeaderFieldsTooLargeError
—HTTPError
with status431
HTTPUnavailableForLegalReasonsError
—HTTPError
with status451
HTTPInternalServerError
—HTTPError
with status500
HTTPNotImplementedError
—HTTPError
with status501
HTTPBadGatewayError
—HTTPError
with status502
HTTPServiceUnavailableError
—HTTPError
with status503
HTTPGatewayTimeoutError
—HTTPError
with status504
HTTPHttpVersionNotSupportedError
—HTTPError
with status505
HTTPVariantAlsoNegotiatesError
—HTTPError
with status506
HTTPInsufficientStorageError
—HTTPError
with status507
HTTPLoopDetectedError
—HTTPError
with status508
HTTPBandwidthLimitExceededError
—HTTPError
with status509
HTTPNotExtendedError
—HTTPError
with status510
HTTPNetworkAuthenticationRequireError
—HTTPError
with status511