-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
status-name.ts
57 lines (55 loc) · 2 KB
/
status-name.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/**
* @file Enums - StatusName
* @module exceptions/enums/StatusName
*/
/**
* HTTP exception status names.
*
* @see https://developer.mozilla.org/docs/Web/HTTP/Status#client_error_responses
* @see https://developer.mozilla.org/docs/Web/HTTP/Status#server_error_responses
*
* @enum {Uppercase<string>}
*/
enum StatusName {
BAD_GATEWAY = 'BAD_GATEWAY',
BAD_REQUEST = 'BAD_REQUEST',
CONFLICT = 'CONFLICT',
EXPECTATION_FAILED = 'EXPECTATION_FAILED',
FAILED_DEPENDENCY = 'FAILED_DEPENDENCY',
FORBIDDEN = 'FORBIDDEN',
GATEWAY_TIMEOUT = 'GATEWAY_TIMEOUT',
GONE = 'GONE',
HTTP_VERSION_NOT_SUPPORTED = 'HTTP_VERSION_NOT_SUPPORTED',
IM_A_TEAPOT = 'IM_A_TEAPOT',
INSUFFICIENT_STORAGE = 'INSUFFICIENT_STORAGE',
INTERNAL_SERVER_ERROR = 'INTERNAL_SERVER_ERROR',
LENGTH_REQUIRED = 'LENGTH_REQUIRED',
LOCKED = 'LOCKED',
LOOP_DETECTED = 'LOOP_DETECTED',
METHOD_NOT_ALLOWED = 'METHOD_NOT_ALLOWED',
MISDIRECTED_REQUEST = 'MISDIRECTED_REQUEST',
NETWORK_AUTHENTICATION_REQUIRED = 'NETWORK_AUTHENTICATION_REQUIRED',
NOT_ACCEPTABLE = 'NOT_ACCEPTABLE',
NOT_EXTENDED = 'NOT_EXTENDED',
NOT_FOUND = 'NOT_FOUND',
NOT_IMPLEMENTED = 'NOT_IMPLEMENTED',
PAYLOAD_TOO_LARGE = 'PAYLOAD_TOO_LARGE',
PAYMENT_REQUIRED = 'PAYMENT_REQUIRED',
PRECONDITION_FAILED = 'PRECONDITION_FAILED',
PRECONDITION_REQUIRED = 'PRECONDITION_REQUIRED',
PROXY_AUTHENTICATION_REQUIRED = 'PROXY_AUTHENTICATION_REQUIRED',
RANGE_NOT_SATISFIABLE = 'RANGE_NOT_SATISFIABLE',
REQUEST_HEADERS_TOO_LARGE = 'REQUEST_HEADERS_TOO_LARGE',
REQUEST_TIMEOUT = 'REQUEST_TIMEOUT',
SERVICE_UNAVAILABLE = 'SERVICE_UNAVAILABLE',
TOO_EARLY = 'TOO_EARLY',
TOO_MANY_REQUESTS = 'TOO_MANY_REQUESTS',
UNAUTHORIZED = 'UNAUTHORIZED',
UNAVAILABLE_FOR_LEGAL_REASONS = 'UNAVAILABLE_FOR_LEGAL_REASONS',
UNPROCESSABLE_CONTENT = 'UNPROCESSABLE_CONTENT',
UNSUPPORTED_MEDIA_TYPE = 'UNSUPPORTED_MEDIA_TYPE',
UPGRADE_REQUIRED = 'UPGRADE_REQUIRED',
URI_TOO_LONG = 'URI_TOO_LONG',
VARIANT_ALSO_NEGOTIATES = 'VARIANT_ALSO_NEGOTIATES'
}
export default StatusName