Skip to content

Commit

Permalink
new codes 102 and 103
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Nov 13, 2018
1 parent ae4b2d6 commit 131e747
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 16 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,7 @@

## Trunk

* codes: new codes 102 and 103
* ts: rewrite declaration type file
* ts: mocha integration

Expand Down
36 changes: 28 additions & 8 deletions lib/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 36 additions & 8 deletions src/index.litcoffee
Expand Up @@ -24,6 +24,20 @@ Request received, continuing process.
'101_MESSAGE': 'The requester has asked the server to switch protocols and the server has agreed to do so.'
SWITCHING_PROTOCOLS: 101
102 Processing (WebDAV; RFC 2518) - A WebDAV request may contain many sub-requests involving file operations, requiring a long time to complete the request. This code indicates that the server has received and is processing the request, but no response is available yet.[7] This prevents the client from timing out and assuming the request was lost.

102: 'Processing'
'102_NAME': 'PROCESSING'
'102_MESSAGE': 'A WebDAV request may contain many sub-requests involving file operations, requiring a long time to complete the request. This code indicates that the server has received and is processing the request, but no response is available yet.[7] This prevents the client from timing out and assuming the request was lost.'
PROCESSING: 102
103 Early Hints (RFC 8297) - Used to return some response headers before final HTTP message.

103: 'Early Hints'
'103_NAME': 'EARLY_HINTS'
'103_MESSAGE': 'Used to return some response headers before final HTTP message.'
EARLY_HINTS: 103
## Successful 2xx

The action was successfully received, understood, and accepted.
Expand Down Expand Up @@ -91,7 +105,7 @@ The action was successfully received, understood, and accepted.
'208_MESSAGE': 'The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response, and are not being included again.'
ALREADY_REPORTED: 208
204 (RFC 3229) - The server has fulfilled a request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.
226 (RFC 3229) - The server has fulfilled a request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.

226: 'IM Used'
'226_NAME': 'IM_USED'
Expand Down Expand Up @@ -465,49 +479,63 @@ The following codes are not specified by any standard.
'103_MESSAGE': 'Used in the resumable requests proposal to resume aborted PUT or POST requests.'
CHECKPOINT: 103
420 (Twitter) - Returned by version 1 of the Twitter Search and Trends API when the client is being rate limited; versions 1.1 and later use the 429 Too Many Requests response code instead.
419 Page Expired (Laravel Framework) - Used by the Laravel Framework when a CSRF Token is missing or expired.

419: 'Page Expired'
'419_NAME': 'PAGE_EXPIRED'
'419_MESSAGE': 'Used by the Laravel Framework when a CSRF Token is missing or expired.'
PAGE_EXPIRED: 419
218 This is fine (Apache Web Server) - Used as a catch-all error condition for allowing response bodies to flow through Apache when ProxyErrorOverride is enabled. When ProxyErrorOverride is enabled in Apache, response bodies that contain a status code of 4xx or 5xx are automatically discarded by Apache in favor of a generic response or a custom response specified by the ErrorDocument directive.

218: 'This is fine'
'218_NAME': 'THIS_IS_FINE'
'218_MESSAGE': 'Used as a catch-all error condition for allowing response bodies to flow through Apache when ProxyErrorOverride is enabled. When ProxyErrorOverride is enabled in Apache, response bodies that contain a status code of 4xx or 5xx are automatically discarded by Apache in favor of a generic response or a custom response specified by the ErrorDocument directive.'
THIS_IS_FINE: 218
420 Enhance Your Calm (Twitter) - Returned by version 1 of the Twitter Search and Trends API when the client is being rate limited; versions 1.1 and later use the 429 Too Many Requests response code instead.

420: 'Enhance Your Calm'
'420_NAME': 'ENHANCE_YOUR_CALM'
'420_MESSAGE': 'Returned by version 1 of the Twitter Search and Trends API when the client is being rate limited; versions 1.1 and later use the 429 Too Many Requests response code instead.'
ENHANCE_YOUR_CALM: 420
450 (Microsoft) - The Microsoft extension code indicated when Windows Parental Controls are turned on and are blocking access to the requested webpage.
450 Blocked by Windows Parental (Microsoft) - The Microsoft extension code indicated when Windows Parental Controls are turned on and are blocking access to the requested webpage.

450: 'Blocked by Windows Parental Controls'
'450_NAME': 'BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS'
'450_MESSAGE': 'The Microsoft extension code indicated when Windows Parental Controls are turned on and are blocking access to the requested webpage.'
BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS: 450
498 (Esri) - Returned by ArcGIS for Server. Code 498 indicates an expired or otherwise invalid token.
498 Invalid Token (Esri) - Returned by ArcGIS for Server. Code 498 indicates an expired or otherwise invalid token.

498: 'Invalid Token'
'498_NAME': 'INVALID_TOKEN'
'498_MESSAGE': 'Returned by ArcGIS for Server. Code 498 indicates an expired or otherwise invalid token.'
INVALID_TOKEN: 498
499 (Esri) - Returned by ArcGIS for Server. Code 499 indicates that a token is required but was not submitted.
499 Token Required (Esri) - Returned by ArcGIS for Server. Code 499 indicates that a token is required but was not submitted.

499: 'Token Required'
'499_NAME': 'TOKEN_REQUIRED'
'499_MESSAGE': 'Returned by ArcGIS for Server. Code 499 indicates that a token is required but was not submitted.'
TOKEN_REQUIRED: 499
509 (Apache Web Server/cPanel) - The server has exceeded the bandwidth specified by the server administrator.
509 Bandwidth Limit Exceeded (Apache Web Server/cPanel) - The server has exceeded the bandwidth specified by the server administrator.

509: 'Bandwidth Limit Exceeded'
'509_NAME': 'BANDWIDTH_LIMIT_EXCEEDED'
'509_MESSAGE': 'The server has exceeded the bandwidth specified by the server administrator.'
BANDWIDTH_LIMIT_EXCEEDED: 509
530 - Used by the Pantheon web platform to indicate a site that has been frozen due to inactivity.
530 Site is frozen - Used by the Pantheon web platform to indicate a site that has been frozen due to inactivity.

530: 'Site is frozen'
'530_NAME': 'SITE_IS_FROZEN'
'530_MESSAGE': 'Used by the Pantheon web platform to indicate a site that has been frozen due to inactivity.'
SITE_IS_FROZEN: 530
598 (Informal convention) - Used by some HTTP proxies to signal a network read timeout behind the proxy to a client in front of the proxy.
598 (Informal convention) Network read timeout error - Used by some HTTP proxies to signal a network read timeout behind the proxy to a client in front of the proxy.

598: 'Network read timeout error'
'598_NAME': 'NETWORK_READ_TIMEOUT_ERROR'
Expand Down

0 comments on commit 131e747

Please sign in to comment.