Skip to content

Status

const Status: object

Defined in: src/http/types.ts:30

Named HTTP status codes for callers that don’t want magic numbers.

readonly Accepted: 202 = 202

readonly BadGateway: 502 = 502

readonly BadRequest: 400 = 400

readonly Conflict: 409 = 409

readonly Created: 201 = 201

readonly Forbidden: 403 = 403

readonly Found: 302 = 302

readonly InternalServerError: 500 = 500

readonly MethodNotAllowed: 405 = 405

readonly MovedPermanently: 301 = 301

readonly NoContent: 204 = 204

readonly NotFound: 404 = 404

readonly NotModified: 304 = 304

readonly OK: 200 = 200

readonly ServiceUnavailable: 503 = 503

readonly TooManyRequests: 429 = 429

readonly Unauthorized: 401 = 401

readonly UnprocessableEntity: 422 = 422

Used by the idempotency-key middleware when the same key is reused with a different body.

readonly UnsupportedMediaType: 415 = 415