Status
constStatus:object
Defined in: src/http/types.ts:30
Named HTTP status codes for callers that don’t want magic numbers.
Type Declaration
Section titled “Type Declaration”Accepted
Section titled “Accepted”
readonlyAccepted:202=202
BadGateway
Section titled “BadGateway”
readonlyBadGateway:502=502
BadRequest
Section titled “BadRequest”
readonlyBadRequest:400=400
Conflict
Section titled “Conflict”
readonlyConflict:409=409
Created
Section titled “Created”
readonlyCreated:201=201
Forbidden
Section titled “Forbidden”
readonlyForbidden:403=403
readonlyFound:302=302
InternalServerError
Section titled “InternalServerError”
readonlyInternalServerError:500=500
MethodNotAllowed
Section titled “MethodNotAllowed”
readonlyMethodNotAllowed:405=405
MovedPermanently
Section titled “MovedPermanently”
readonlyMovedPermanently:301=301
NoContent
Section titled “NoContent”
readonlyNoContent:204=204
NotFound
Section titled “NotFound”
readonlyNotFound:404=404
NotModified
Section titled “NotModified”
readonlyNotModified:304=304
readonlyOK:200=200
ServiceUnavailable
Section titled “ServiceUnavailable”
readonlyServiceUnavailable:503=503
TooManyRequests
Section titled “TooManyRequests”
readonlyTooManyRequests:429=429
Unauthorized
Section titled “Unauthorized”
readonlyUnauthorized:401=401
UnprocessableEntity
Section titled “UnprocessableEntity”
readonlyUnprocessableEntity:422=422
Used by the idempotency-key middleware when the same key is reused with a different body.
UnsupportedMediaType
Section titled “UnsupportedMediaType”
readonlyUnsupportedMediaType:415=415