Skip to content

HttpStatus

reference
1 min readUpdated

Kind: Enum

Source: packages/common/enums/http-status.enum.ts

Part of: Common

Values

  • CONTINUE
  • SWITCHING_PROTOCOLS
  • PROCESSING
  • EARLYHINTS
  • OK
  • CREATED
  • ACCEPTED
  • NON_AUTHORITATIVE_INFORMATION
  • NO_CONTENT
  • RESET_CONTENT
  • PARTIAL_CONTENT
  • MULTI_STATUS
  • ALREADY_REPORTED
  • CONTENT_DIFFERENT
  • AMBIGUOUS
  • MOVED_PERMANENTLY
  • FOUND
  • SEE_OTHER
  • NOT_MODIFIED
  • TEMPORARY_REDIRECT
  • PERMANENT_REDIRECT
  • BAD_REQUEST
  • UNAUTHORIZED
  • PAYMENT_REQUIRED
  • FORBIDDEN
  • NOT_FOUND
  • METHOD_NOT_ALLOWED
  • NOT_ACCEPTABLE
  • PROXY_AUTHENTICATION_REQUIRED
  • REQUEST_TIMEOUT
  • CONFLICT
  • GONE
  • LENGTH_REQUIRED
  • PRECONDITION_FAILED
  • PAYLOAD_TOO_LARGE
  • URI_TOO_LONG
  • UNSUPPORTED_MEDIA_TYPE
  • REQUESTED_RANGE_NOT_SATISFIABLE
  • EXPECTATION_FAILED
  • I_AM_A_TEAPOT
  • MISDIRECTED
  • UNPROCESSABLE_ENTITY
  • LOCKED
  • FAILED_DEPENDENCY
  • PRECONDITION_REQUIRED
  • TOO_MANY_REQUESTS
  • UNRECOVERABLE_ERROR
  • INTERNAL_SERVER_ERROR
  • NOT_IMPLEMENTED
  • BAD_GATEWAY

Used by

8 references from 8 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

Imported by (8)

  • CustomHeaderpackages/core/router/router-response-controller.ts:18
  • ErrorsInterceptorsample/01-cats-app/src/common/interceptors/exception.interceptor.ts:12
  • ExceptionInterceptorsample/10-fastify/src/common/interceptors/exception.interceptor.ts:12
  • AuthControllersample/19-auth-jwt/src/auth/auth.controller.ts:13
  • ErrorsInterceptorsample/36-hmr-esm/src/common/interceptors/exception.interceptor.ts:12
  • BaseExceptionFilterpackages/core/exceptions/base-exception-filter.ts:17
  • ExpressAdapterpackages/platform-express/adapters/express-adapter.ts:51
  • FastifyAdapterpackages/platform-fastify/adapters/fastify-adapter.ts:124

Was this page helpful?

Download as PDF
HttpStatus — NestJS head-to-head