From 5276a8da8d4c9e6f7e31422bc85055bf6a3f98e2 Mon Sep 17 00:00:00 2001 From: Nik Date: Tue, 2 Apr 2024 18:23:30 +0200 Subject: [PATCH] fix: add missed http statuses & grouped visually by codes --- packages/common/enums/http-status.enum.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/common/enums/http-status.enum.ts b/packages/common/enums/http-status.enum.ts index 326001344c2..c790ef86f28 100644 --- a/packages/common/enums/http-status.enum.ts +++ b/packages/common/enums/http-status.enum.ts @@ -6,6 +6,7 @@ export enum HttpStatus { SWITCHING_PROTOCOLS = 101, PROCESSING = 102, EARLYHINTS = 103, + OK = 200, CREATED = 201, ACCEPTED = 202, @@ -13,6 +14,7 @@ export enum HttpStatus { NO_CONTENT = 204, RESET_CONTENT = 205, PARTIAL_CONTENT = 206, + AMBIGUOUS = 300, MOVED_PERMANENTLY = 301, FOUND = 302, @@ -20,6 +22,7 @@ export enum HttpStatus { NOT_MODIFIED = 304, TEMPORARY_REDIRECT = 307, PERMANENT_REDIRECT = 308, + BAD_REQUEST = 400, UNAUTHORIZED = 401, PAYMENT_REQUIRED = 402, @@ -44,10 +47,18 @@ export enum HttpStatus { FAILED_DEPENDENCY = 424, PRECONDITION_REQUIRED = 428, TOO_MANY_REQUESTS = 429, + REQUEST_HEADER_FIELDS_TOO_LARGE = 431, + UNAVAILABLE_FOR_LEGAL_REASONS = 451, + INTERNAL_SERVER_ERROR = 500, NOT_IMPLEMENTED = 501, BAD_GATEWAY = 502, SERVICE_UNAVAILABLE = 503, GATEWAY_TIMEOUT = 504, HTTP_VERSION_NOT_SUPPORTED = 505, + VARIANT_ALSO_NEGOTIATES = 506, + INSUFFICIENT_STORAGE = 507, + LOOP_DETECTED = 508, + NOT_EXTENDED = 510, + NETWORK_AUTHENTICATION_REQUIRED = 511, }