feat: added http status code enum

This commit is contained in:
StevanFreeborn
2023-01-27 11:28:45 -06:00
parent 3c633203a8
commit 49ab392964
3 changed files with 142 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
export enum HttpStatusCode {
OK = 200,
Created = 201,
Accepted = 202,
NoContent = 204,
BadRequest = 400,
Unauthorized = 401,
Forbidden = 403,
NotFound = 404,
MethodNotAllowed = 405,
Conflict = 409,
InternalServerError = 500,
NotImplemented = 501,
BadGateway = 502,
ServiceUnavailable = 503,
GatewayTimeout = 504,
}