@plyaz/config 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,410 @@
1
+ /**
2
+ * Accessibility (a11y) Constants
3
+ *
4
+ * WCAG compliance constants, ARIA attributes, color contrast calculations,
5
+ * and other accessibility-related values used throughout the application.
6
+ *
7
+ * @module a11y/constants
8
+ */
9
+ /**
10
+ * Core accessibility constants for testing and validation
11
+ */
12
+ export declare const A11Y_CONSTANTS: {
13
+ /**
14
+ * Delay before checking focus state (milliseconds)
15
+ */
16
+ readonly FOCUS_CHECK_DELAY: 100;
17
+ /**
18
+ * Maximum number of tab key presses for focus testing
19
+ */
20
+ readonly FOCUS_TAB_COUNT: 10;
21
+ /**
22
+ * Minimum time for focus to be visible (milliseconds)
23
+ */
24
+ readonly MIN_FOCUS_VISIBLE_TIME: 200;
25
+ /**
26
+ * Maximum time to wait for focus change (milliseconds)
27
+ */
28
+ readonly MAX_FOCUS_WAIT_TIME: 3000;
29
+ /**
30
+ * Debounce delay for screen reader announcements (milliseconds)
31
+ */
32
+ readonly SCREEN_READER_DEBOUNCE: 150;
33
+ /**
34
+ * Minimum font size for large text (points)
35
+ */
36
+ readonly MIN_LARGE_TEXT_SIZE: 18;
37
+ /**
38
+ * Minimum font size for bold large text (points)
39
+ */
40
+ readonly MIN_LARGE_TEXT_BOLD_SIZE: 14;
41
+ /**
42
+ * Minimum font size for normal text (points)
43
+ */
44
+ readonly MIN_NORMAL_TEXT_SIZE: 14;
45
+ /**
46
+ * Minimum touch target size (pixels) - WCAG 2.5.5
47
+ */
48
+ readonly MIN_TOUCH_TARGET_SIZE: 44;
49
+ /**
50
+ * Minimum touch target size for inline elements (pixels)
51
+ */
52
+ readonly MIN_INLINE_TARGET_SIZE: 24;
53
+ /**
54
+ * Maximum value for RGB color channels
55
+ */
56
+ readonly COLOR_CHANNEL_MAX: 255;
57
+ /**
58
+ * sRGB threshold for luminance calculation
59
+ */
60
+ readonly SRGB_THRESHOLD: 0.03928;
61
+ /**
62
+ * sRGB divisor for linear conversion
63
+ */
64
+ readonly SRGB_DIVISOR: 12.92;
65
+ /**
66
+ * sRGB offset for gamma correction
67
+ */
68
+ readonly SRGB_OFFSET: 0.055;
69
+ /**
70
+ * sRGB scale factor for gamma correction
71
+ */
72
+ readonly SRGB_SCALE: 1.055;
73
+ /**
74
+ * sRGB exponent for gamma correction
75
+ */
76
+ readonly SRGB_EXPONENT: 2.4;
77
+ /**
78
+ * Red channel weight for luminance calculation
79
+ */
80
+ readonly LUMINANCE_RED: 0.2126;
81
+ /**
82
+ * Green channel weight for luminance calculation
83
+ */
84
+ readonly LUMINANCE_GREEN: 0.7152;
85
+ /**
86
+ * Blue channel weight for luminance calculation
87
+ */
88
+ readonly LUMINANCE_BLUE: 0.0722;
89
+ /**
90
+ * Offset added to luminance for contrast ratio calculation
91
+ */
92
+ readonly LUMINANCE_OFFSET: 0.05;
93
+ /**
94
+ * Minimum contrast ratio for AA compliance (normal text)
95
+ */
96
+ readonly CONTRAST_RATIO_AA: 4.5;
97
+ /**
98
+ * Minimum contrast ratio for AA compliance (large text)
99
+ */
100
+ readonly CONTRAST_RATIO_AA_LARGE: 3;
101
+ /**
102
+ * Minimum contrast ratio for AAA compliance (normal text)
103
+ */
104
+ readonly CONTRAST_RATIO_AAA: 7;
105
+ /**
106
+ * Minimum contrast ratio for AAA compliance (large text)
107
+ */
108
+ readonly CONTRAST_RATIO_AAA_LARGE: 4.5;
109
+ /**
110
+ * Minimum contrast ratio for non-text elements (graphics, UI components)
111
+ */
112
+ readonly CONTRAST_RATIO_GRAPHICS: 3;
113
+ /**
114
+ * Maximum percentage value
115
+ */
116
+ readonly PERCENTAGE_MAX: 100;
117
+ /**
118
+ * Maximum duration for essential animations (milliseconds)
119
+ */
120
+ readonly MAX_ESSENTIAL_ANIMATION_DURATION: 5000;
121
+ /**
122
+ * Default duration for reduced motion (milliseconds)
123
+ */
124
+ readonly REDUCED_MOTION_DURATION: 1;
125
+ /**
126
+ * Maximum flashes per second to avoid seizures (WCAG 2.3.1)
127
+ */
128
+ readonly MAX_FLASH_RATE: 3;
129
+ /**
130
+ * Minimum time between auto-updating content (seconds)
131
+ */
132
+ readonly MIN_AUTO_UPDATE_INTERVAL: 5;
133
+ /**
134
+ * Minimum warning time before timeout (seconds) - WCAG 2.2.1
135
+ */
136
+ readonly MIN_TIMEOUT_WARNING: 20;
137
+ /**
138
+ * Default session timeout (minutes)
139
+ */
140
+ readonly DEFAULT_SESSION_TIMEOUT: 20;
141
+ /**
142
+ * Extended session timeout for accessibility (minutes)
143
+ */
144
+ readonly EXTENDED_SESSION_TIMEOUT: 120;
145
+ /**
146
+ * Maximum background audio level (dB) - WCAG 1.4.7
147
+ */
148
+ readonly MAX_BACKGROUND_AUDIO_LEVEL: -20;
149
+ /**
150
+ * Default caption offset from bottom (pixels)
151
+ */
152
+ readonly DEFAULT_CAPTION_OFFSET: 50;
153
+ /**
154
+ * Minimum caption font size (pixels)
155
+ */
156
+ readonly MIN_CAPTION_FONT_SIZE: 16;
157
+ /**
158
+ * Default audio description delay (milliseconds)
159
+ */
160
+ readonly AUDIO_DESCRIPTION_DELAY: 100;
161
+ /**
162
+ * Delay before showing validation errors (milliseconds)
163
+ */
164
+ readonly VALIDATION_DELAY: 1000;
165
+ /**
166
+ * Maximum error message length for screen readers
167
+ */
168
+ readonly MAX_ERROR_MESSAGE_LENGTH: 150;
169
+ /**
170
+ * Minimum password length for accessibility
171
+ */
172
+ readonly MIN_PASSWORD_LENGTH: 8;
173
+ /**
174
+ * Maximum zoom level without horizontal scrolling (percentage)
175
+ */
176
+ readonly MAX_ZOOM_WITHOUT_SCROLL: 200;
177
+ /**
178
+ * Minimum zoom level supported (percentage)
179
+ */
180
+ readonly MIN_ZOOM_LEVEL: 50;
181
+ /**
182
+ * Maximum zoom level supported (percentage)
183
+ */
184
+ readonly MAX_ZOOM_LEVEL: 500;
185
+ /**
186
+ * Maximum line length for readability (characters)
187
+ */
188
+ readonly MAX_LINE_LENGTH: 80;
189
+ /**
190
+ * Optimal line length for reading (characters)
191
+ */
192
+ readonly OPTIMAL_LINE_LENGTH: 66;
193
+ /**
194
+ * Minimum line height for readability
195
+ */
196
+ readonly MIN_LINE_HEIGHT: 1.5;
197
+ /**
198
+ * Maximum paragraph width for readability (pixels)
199
+ */
200
+ readonly MAX_PARAGRAPH_WIDTH: 600;
201
+ };
202
+ /**
203
+ * ARIA roles for semantic HTML
204
+ */
205
+ export declare const ARIA_ROLES: {
206
+ readonly BANNER: "banner";
207
+ readonly COMPLEMENTARY: "complementary";
208
+ readonly CONTENTINFO: "contentinfo";
209
+ readonly FORM: "form";
210
+ readonly MAIN: "main";
211
+ readonly NAVIGATION: "navigation";
212
+ readonly REGION: "region";
213
+ readonly SEARCH: "search";
214
+ readonly APPLICATION: "application";
215
+ readonly ARTICLE: "article";
216
+ readonly CELL: "cell";
217
+ readonly COLUMNHEADER: "columnheader";
218
+ readonly DEFINITION: "definition";
219
+ readonly DIRECTORY: "directory";
220
+ readonly DOCUMENT: "document";
221
+ readonly FEED: "feed";
222
+ readonly FIGURE: "figure";
223
+ readonly GROUP: "group";
224
+ readonly HEADING: "heading";
225
+ readonly IMG: "img";
226
+ readonly LIST: "list";
227
+ readonly LISTITEM: "listitem";
228
+ readonly MATH: "math";
229
+ readonly NOTE: "note";
230
+ readonly PRESENTATION: "presentation";
231
+ readonly ROW: "row";
232
+ readonly ROWGROUP: "rowgroup";
233
+ readonly ROWHEADER: "rowheader";
234
+ readonly SEPARATOR: "separator";
235
+ readonly TABLE: "table";
236
+ readonly TERM: "term";
237
+ readonly ALERT: "alert";
238
+ readonly ALERTDIALOG: "alertdialog";
239
+ readonly BUTTON: "button";
240
+ readonly CHECKBOX: "checkbox";
241
+ readonly COMBOBOX: "combobox";
242
+ readonly DIALOG: "dialog";
243
+ readonly GRIDCELL: "gridcell";
244
+ readonly LINK: "link";
245
+ readonly LISTBOX: "listbox";
246
+ readonly LOG: "log";
247
+ readonly MARQUEE: "marquee";
248
+ readonly MENU: "menu";
249
+ readonly MENUBAR: "menubar";
250
+ readonly MENUITEM: "menuitem";
251
+ readonly MENUITEMCHECKBOX: "menuitemcheckbox";
252
+ readonly MENUITEMRADIO: "menuitemradio";
253
+ readonly OPTION: "option";
254
+ readonly PROGRESSBAR: "progressbar";
255
+ readonly RADIO: "radio";
256
+ readonly RADIOGROUP: "radiogroup";
257
+ readonly SCROLLBAR: "scrollbar";
258
+ readonly SEARCHBOX: "searchbox";
259
+ readonly SLIDER: "slider";
260
+ readonly SPINBUTTON: "spinbutton";
261
+ readonly STATUS: "status";
262
+ readonly SWITCH: "switch";
263
+ readonly TAB: "tab";
264
+ readonly TABLIST: "tablist";
265
+ readonly TABPANEL: "tabpanel";
266
+ readonly TEXTBOX: "textbox";
267
+ readonly TIMER: "timer";
268
+ readonly TOOLBAR: "toolbar";
269
+ readonly TOOLTIP: "tooltip";
270
+ readonly TREE: "tree";
271
+ readonly TREEGRID: "treegrid";
272
+ readonly TREEITEM: "treeitem";
273
+ readonly COMMAND: "command";
274
+ readonly COMPOSITE: "composite";
275
+ readonly INPUT: "input";
276
+ readonly LANDMARK: "landmark";
277
+ readonly RANGE: "range";
278
+ readonly ROLETYPE: "roletype";
279
+ readonly SECTION: "section";
280
+ readonly SECTIONHEAD: "sectionhead";
281
+ readonly SELECT: "select";
282
+ readonly STRUCTURE: "structure";
283
+ readonly WIDGET: "widget";
284
+ readonly WINDOW: "window";
285
+ };
286
+ /**
287
+ * Common ARIA attributes
288
+ */
289
+ export declare const ARIA_ATTRIBUTES: {
290
+ readonly ARIA_AUTOCOMPLETE: "aria-autocomplete";
291
+ readonly ARIA_CHECKED: "aria-checked";
292
+ readonly ARIA_DISABLED: "aria-disabled";
293
+ readonly ARIA_ERRORMESSAGE: "aria-errormessage";
294
+ readonly ARIA_EXPANDED: "aria-expanded";
295
+ readonly ARIA_HASPOPUP: "aria-haspopup";
296
+ readonly ARIA_HIDDEN: "aria-hidden";
297
+ readonly ARIA_INVALID: "aria-invalid";
298
+ readonly ARIA_LABEL: "aria-label";
299
+ readonly ARIA_LEVEL: "aria-level";
300
+ readonly ARIA_MODAL: "aria-modal";
301
+ readonly ARIA_MULTILINE: "aria-multiline";
302
+ readonly ARIA_MULTISELECTABLE: "aria-multiselectable";
303
+ readonly ARIA_ORIENTATION: "aria-orientation";
304
+ readonly ARIA_PLACEHOLDER: "aria-placeholder";
305
+ readonly ARIA_PRESSED: "aria-pressed";
306
+ readonly ARIA_READONLY: "aria-readonly";
307
+ readonly ARIA_REQUIRED: "aria-required";
308
+ readonly ARIA_SELECTED: "aria-selected";
309
+ readonly ARIA_SORT: "aria-sort";
310
+ readonly ARIA_VALUEMAX: "aria-valuemax";
311
+ readonly ARIA_VALUEMIN: "aria-valuemin";
312
+ readonly ARIA_VALUENOW: "aria-valuenow";
313
+ readonly ARIA_VALUETEXT: "aria-valuetext";
314
+ readonly ARIA_LIVE: "aria-live";
315
+ readonly ARIA_ATOMIC: "aria-atomic";
316
+ readonly ARIA_RELEVANT: "aria-relevant";
317
+ readonly ARIA_BUSY: "aria-busy";
318
+ readonly ARIA_DROPEFFECT: "aria-dropeffect";
319
+ readonly ARIA_GRABBED: "aria-grabbed";
320
+ readonly ARIA_ACTIVEDESCENDANT: "aria-activedescendant";
321
+ readonly ARIA_COLCOUNT: "aria-colcount";
322
+ readonly ARIA_COLINDEX: "aria-colindex";
323
+ readonly ARIA_COLSPAN: "aria-colspan";
324
+ readonly ARIA_CONTROLS: "aria-controls";
325
+ readonly ARIA_DESCRIBEDBY: "aria-describedby";
326
+ readonly ARIA_DETAILS: "aria-details";
327
+ readonly ARIA_FLOWTO: "aria-flowto";
328
+ readonly ARIA_LABELLEDBY: "aria-labelledby";
329
+ readonly ARIA_OWNS: "aria-owns";
330
+ readonly ARIA_POSINSET: "aria-posinset";
331
+ readonly ARIA_ROWCOUNT: "aria-rowcount";
332
+ readonly ARIA_ROWINDEX: "aria-rowindex";
333
+ readonly ARIA_ROWSPAN: "aria-rowspan";
334
+ readonly ARIA_SETSIZE: "aria-setsize";
335
+ readonly ARIA_CURRENT: "aria-current";
336
+ readonly ARIA_DESCRIPTION: "aria-description";
337
+ readonly ARIA_KEYSHORTCUTS: "aria-keyshortcuts";
338
+ readonly ARIA_ROLEDESCRIPTION: "aria-roledescription";
339
+ };
340
+ /**
341
+ * Keyboard navigation constants
342
+ */
343
+ export declare const KEYBOARD_CODES: {
344
+ readonly TAB: "Tab";
345
+ readonly ENTER: "Enter";
346
+ readonly SPACE: " ";
347
+ readonly ESCAPE: "Escape";
348
+ readonly ARROW_UP: "ArrowUp";
349
+ readonly ARROW_DOWN: "ArrowDown";
350
+ readonly ARROW_LEFT: "ArrowLeft";
351
+ readonly ARROW_RIGHT: "ArrowRight";
352
+ readonly HOME: "Home";
353
+ readonly END: "End";
354
+ readonly PAGE_UP: "PageUp";
355
+ readonly PAGE_DOWN: "PageDown";
356
+ readonly TAB_KEYCODE: 9;
357
+ readonly ENTER_KEYCODE: 13;
358
+ readonly ESCAPE_KEYCODE: 27;
359
+ readonly SPACE_KEYCODE: 32;
360
+ readonly ARROW_LEFT_KEYCODE: 37;
361
+ readonly ARROW_UP_KEYCODE: 38;
362
+ readonly ARROW_RIGHT_KEYCODE: 39;
363
+ readonly ARROW_DOWN_KEYCODE: 40;
364
+ };
365
+ /**
366
+ * Screen reader announcement priorities
367
+ */
368
+ export declare const ANNOUNCEMENT_PRIORITY: {
369
+ /**
370
+ * Polite announcement - waits for current speech to finish
371
+ */
372
+ readonly POLITE: "polite";
373
+ /**
374
+ * Assertive announcement - interrupts current speech
375
+ */
376
+ readonly ASSERTIVE: "assertive";
377
+ /**
378
+ * Off - no announcement
379
+ */
380
+ readonly OFF: "off";
381
+ };
382
+ /**
383
+ * Focus trap configurations
384
+ */
385
+ export declare const FOCUS_TRAP: {
386
+ /**
387
+ * Initial focus selector
388
+ */
389
+ readonly INITIAL_FOCUS: "[data-focus-initial], [autofocus]";
390
+ /**
391
+ * Focusable elements selector
392
+ */
393
+ readonly FOCUSABLE_ELEMENTS: "a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
394
+ /**
395
+ * Interactive elements selector
396
+ */
397
+ readonly INTERACTIVE_ELEMENTS: "button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])";
398
+ /**
399
+ * Skip link selector
400
+ */
401
+ readonly SKIP_LINK: "[data-skip-link], .skip-link";
402
+ };
403
+ /**
404
+ * Type exports
405
+ */
406
+ export type A11yConstant = (typeof A11Y_CONSTANTS)[keyof typeof A11Y_CONSTANTS];
407
+ export type AriaRole = (typeof ARIA_ROLES)[keyof typeof ARIA_ROLES];
408
+ export type AriaAttribute = (typeof ARIA_ATTRIBUTES)[keyof typeof ARIA_ATTRIBUTES];
409
+ export type KeyboardCode = (typeof KEYBOARD_CODES)[keyof typeof KEYBOARD_CODES];
410
+ export type AnnouncementPriority = (typeof ANNOUNCEMENT_PRIORITY)[keyof typeof ANNOUNCEMENT_PRIORITY];
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Accessibility (a11y) Module
3
+ *
4
+ * Central export point for all accessibility-related constants and utilities.
5
+ *
6
+ * @module a11y
7
+ */
8
+ export * from './constants';
@@ -10,6 +10,22 @@
10
10
  * Standard HTTP status codes
11
11
  */
12
12
  export declare const HTTP_STATUS: {
13
+ /**
14
+ * 100 Continue - The initial part of a request has been received
15
+ */
16
+ readonly CONTINUE: 100;
17
+ /**
18
+ * 101 Switching Protocols - The server is switching protocols
19
+ */
20
+ readonly SWITCHING_PROTOCOLS: 101;
21
+ /**
22
+ * 102 Processing - The server has received and is processing the request
23
+ */
24
+ readonly PROCESSING: 102;
25
+ /**
26
+ * 103 Early Hints - Used to return some response headers before final HTTP message
27
+ */
28
+ readonly EARLY_HINTS: 103;
13
29
  /**
14
30
  * 200 OK - The request succeeded
15
31
  */
@@ -18,14 +34,70 @@ export declare const HTTP_STATUS: {
18
34
  * 201 Created - The request succeeded and a new resource was created
19
35
  */
20
36
  readonly CREATED: 201;
37
+ /**
38
+ * 202 Accepted - The request has been received but not yet acted upon
39
+ */
40
+ readonly ACCEPTED: 202;
41
+ /**
42
+ * 203 Non-Authoritative Information - The returned metadata is not from the origin server
43
+ */
44
+ readonly NON_AUTHORITATIVE_INFORMATION: 203;
45
+ /**
46
+ * 204 No Content - There is no content to send for this request
47
+ */
48
+ readonly NO_CONTENT: 204;
49
+ /**
50
+ * 205 Reset Content - Tells the user agent to reset the document
51
+ */
52
+ readonly RESET_CONTENT: 205;
53
+ /**
54
+ * 206 Partial Content - The server is delivering only part of the resource
55
+ */
56
+ readonly PARTIAL_CONTENT: 206;
57
+ /**
58
+ * 207 Multi-Status - Conveys information about multiple resources
59
+ */
60
+ readonly MULTI_STATUS: 207;
61
+ /**
62
+ * 208 Already Reported - The members of a DAV binding have already been enumerated
63
+ */
64
+ readonly ALREADY_REPORTED: 208;
65
+ /**
66
+ * 226 IM Used - The server has fulfilled a request for the resource
67
+ */
68
+ readonly IM_USED: 226;
69
+ /**
70
+ * 300 Multiple Choices - Multiple options for the resource are available
71
+ */
72
+ readonly MULTIPLE_CHOICES: 300;
73
+ /**
74
+ * 301 Moved Permanently - The URL of the requested resource has been changed permanently
75
+ */
76
+ readonly MOVED_PERMANENTLY: 301;
21
77
  /**
22
78
  * 302 Found - The resource resides temporarily under a different URI
23
79
  */
24
80
  readonly FOUND: 302;
81
+ /**
82
+ * 303 See Other - Direct the client to get the resource at another URI
83
+ */
84
+ readonly SEE_OTHER: 303;
85
+ /**
86
+ * 304 Not Modified - The cached version is still valid
87
+ */
88
+ readonly NOT_MODIFIED: 304;
89
+ /**
90
+ * 305 Use Proxy - Defined in a previous version of the HTTP specification
91
+ */
92
+ readonly USE_PROXY: 305;
25
93
  /**
26
94
  * 307 Temporary Redirect - The request should be repeated with another URI
27
95
  */
28
96
  readonly TEMPORARY_REDIRECT: 307;
97
+ /**
98
+ * 308 Permanent Redirect - The resource is permanently located at another URI
99
+ */
100
+ readonly PERMANENT_REDIRECT: 308;
29
101
  /**
30
102
  * 400 Bad Request - The server cannot process the request due to client error
31
103
  */
@@ -34,6 +106,10 @@ export declare const HTTP_STATUS: {
34
106
  * 401 Unauthorized - Authentication is required and has failed or not been provided
35
107
  */
36
108
  readonly UNAUTHORIZED: 401;
109
+ /**
110
+ * 402 Payment Required - Reserved for future use
111
+ */
112
+ readonly PAYMENT_REQUIRED: 402;
37
113
  /**
38
114
  * 403 Forbidden - The server understood the request but refuses to authorize it
39
115
  */
@@ -42,10 +118,146 @@ export declare const HTTP_STATUS: {
42
118
  * 404 Not Found - The server cannot find the requested resource
43
119
  */
44
120
  readonly NOT_FOUND: 404;
121
+ /**
122
+ * 405 Method Not Allowed - The request method is not supported for the requested resource
123
+ */
124
+ readonly METHOD_NOT_ALLOWED: 405;
125
+ /**
126
+ * 406 Not Acceptable - The requested resource is not available in a format acceptable to the client
127
+ */
128
+ readonly NOT_ACCEPTABLE: 406;
129
+ /**
130
+ * 407 Proxy Authentication Required - The client must authenticate itself with the proxy
131
+ */
132
+ readonly PROXY_AUTHENTICATION_REQUIRED: 407;
133
+ /**
134
+ * 408 Request Timeout - The server timed out waiting for the request
135
+ */
136
+ readonly REQUEST_TIMEOUT: 408;
137
+ /**
138
+ * 409 Conflict - The request conflicts with the current state of the server
139
+ */
140
+ readonly CONFLICT: 409;
141
+ /**
142
+ * 410 Gone - The requested resource is no longer available and will not be available again
143
+ */
144
+ readonly GONE: 410;
145
+ /**
146
+ * 411 Length Required - The request did not specify the length of its content
147
+ */
148
+ readonly LENGTH_REQUIRED: 411;
149
+ /**
150
+ * 412 Precondition Failed - The server does not meet one of the preconditions
151
+ */
152
+ readonly PRECONDITION_FAILED: 412;
153
+ /**
154
+ * 413 Payload Too Large - The request is larger than the server is willing to process
155
+ */
156
+ readonly PAYLOAD_TOO_LARGE: 413;
157
+ /**
158
+ * 414 URI Too Long - The URI provided was too long for the server to process
159
+ */
160
+ readonly URI_TOO_LONG: 414;
161
+ /**
162
+ * 415 Unsupported Media Type - The request entity has a media type not supported by the server
163
+ */
164
+ readonly UNSUPPORTED_MEDIA_TYPE: 415;
165
+ /**
166
+ * 416 Range Not Satisfiable - The client has asked for a portion of the file that the server cannot supply
167
+ */
168
+ readonly RANGE_NOT_SATISFIABLE: 416;
169
+ /**
170
+ * 417 Expectation Failed - The server cannot meet the requirements of the Expect request-header field
171
+ */
172
+ readonly EXPECTATION_FAILED: 417;
173
+ /**
174
+ * 418 I'm a teapot - The server refuses to brew coffee because it is a teapot
175
+ */
176
+ readonly IM_A_TEAPOT: 418;
177
+ /**
178
+ * 421 Misdirected Request - The request was directed at a server that is not able to produce a response
179
+ */
180
+ readonly MISDIRECTED_REQUEST: 421;
181
+ /**
182
+ * 422 Unprocessable Entity - The request was well-formed but was unable to be followed due to semantic errors
183
+ */
184
+ readonly UNPROCESSABLE_ENTITY: 422;
185
+ /**
186
+ * 423 Locked - The resource that is being accessed is locked
187
+ */
188
+ readonly LOCKED: 423;
189
+ /**
190
+ * 424 Failed Dependency - The request failed due to failure of a previous request
191
+ */
192
+ readonly FAILED_DEPENDENCY: 424;
193
+ /**
194
+ * 425 Too Early - The server is unwilling to risk processing a request that might be replayed
195
+ */
196
+ readonly TOO_EARLY: 425;
197
+ /**
198
+ * 426 Upgrade Required - The client should switch to a different protocol
199
+ */
200
+ readonly UPGRADE_REQUIRED: 426;
201
+ /**
202
+ * 428 Precondition Required - The origin server requires the request to be conditional
203
+ */
204
+ readonly PRECONDITION_REQUIRED: 428;
205
+ /**
206
+ * 429 Too Many Requests - The user has sent too many requests in a given amount of time
207
+ */
208
+ readonly TOO_MANY_REQUESTS: 429;
209
+ /**
210
+ * 431 Request Header Fields Too Large - The server is unwilling to process the request because its header fields are too large
211
+ */
212
+ readonly REQUEST_HEADER_FIELDS_TOO_LARGE: 431;
213
+ /**
214
+ * 451 Unavailable For Legal Reasons - The user requested a resource that cannot legally be provided
215
+ */
216
+ readonly UNAVAILABLE_FOR_LEGAL_REASONS: 451;
45
217
  /**
46
218
  * 500 Internal Server Error - The server encountered an unexpected condition
47
219
  */
48
220
  readonly INTERNAL_SERVER_ERROR: 500;
221
+ /**
222
+ * 501 Not Implemented - The server does not support the functionality required to fulfill the request
223
+ */
224
+ readonly NOT_IMPLEMENTED: 501;
225
+ /**
226
+ * 502 Bad Gateway - The server received an invalid response from the upstream server
227
+ */
228
+ readonly BAD_GATEWAY: 502;
229
+ /**
230
+ * 503 Service Unavailable - The server is not ready to handle the request
231
+ */
232
+ readonly SERVICE_UNAVAILABLE: 503;
233
+ /**
234
+ * 504 Gateway Timeout - The server did not get a response in time from the upstream server
235
+ */
236
+ readonly GATEWAY_TIMEOUT: 504;
237
+ /**
238
+ * 505 HTTP Version Not Supported - The HTTP version used in the request is not supported by the server
239
+ */
240
+ readonly HTTP_VERSION_NOT_SUPPORTED: 505;
241
+ /**
242
+ * 506 Variant Also Negotiates - The server has an internal configuration error
243
+ */
244
+ readonly VARIANT_ALSO_NEGOTIATES: 506;
245
+ /**
246
+ * 507 Insufficient Storage - The server is unable to store the representation needed to complete the request
247
+ */
248
+ readonly INSUFFICIENT_STORAGE: 507;
249
+ /**
250
+ * 508 Loop Detected - The server detected an infinite loop while processing the request
251
+ */
252
+ readonly LOOP_DETECTED: 508;
253
+ /**
254
+ * 510 Not Extended - Further extensions to the request are required for the server to fulfill it
255
+ */
256
+ readonly NOT_EXTENDED: 510;
257
+ /**
258
+ * 511 Network Authentication Required - The client needs to authenticate to gain network access
259
+ */
260
+ readonly NETWORK_AUTHENTICATION_REQUIRED: 511;
49
261
  };
50
262
  /**
51
263
  * Type for HTTP status codes