|
1 | 1 |
|
2 | 2 | // generate long status message if required |
3 | 3 |
|
4 | | -export const LongStatusMessages = { |
| 4 | +export const DetailedStatusMessages = { |
5 | 5 | // --- 1xx: Informational --- |
6 | 6 | 100: 'Continue. Request received, continue to send the rest of the request.', |
7 | 7 | 101: 'Switching Protocols. Protocol switch initiated as requested by the client.', |
@@ -74,35 +74,35 @@ export const LongStatusMessages = { |
74 | 74 | 510: 'Not Extended. Further extensions are required for the server to fulfill the request.', |
75 | 75 | 511: 'Network Authentication Required. The client must authenticate to gain network access.', |
76 | 76 |
|
77 | | - // Unofficial |
78 | | - 419: 'Page expired due to missing or invalid CSRF token.', |
79 | | - 420: 'Request rate limited; please slow down.', |
80 | | - 450: 'Access blocked by Windows parental control settings.', |
81 | | - 498: 'Token provided is invalid or expired.', |
82 | | - 509: 'Bandwidth limit exceeded as per server settings.', |
83 | | - 530: 'Site is frozen due to inactivity or administrative action.', |
84 | | - 598: 'Network read timed out behind a proxy server.', |
85 | | - 599: 'Network connection timed out during communication.', |
| 77 | + // --- Unofficial Codes --- |
| 78 | + 419: 'Page Expired. Page expired due to missing or invalid CSRF token.', |
| 79 | + 420: 'Method Failure. Request rate limited; please slow down.', |
| 80 | + 450: 'Blocked by Windows Parental Controls. Access blocked by Windows parental control settings.', |
| 81 | + 498: 'Invalid Token. Token provided is invalid or expired.', |
| 82 | + 509: 'Bandwidth Limit Exceeded. Bandwidth limit exceeded as per server settings.', |
| 83 | + 530: 'Site Frozen. Site is frozen due to inactivity or administrative action.', |
| 84 | + 598: 'Network Read Timeout Error. Network read timed out behind a proxy server.', |
| 85 | + 599: 'Network Connect Timeout Error. Network connection timed out during communication.', |
86 | 86 |
|
87 | | - // NGINX |
88 | | - 444: 'No response returned; connection closed immediately.', |
89 | | - 494: 'Request header is too large to be processed by the server.', |
90 | | - 495: 'Invalid client SSL certificate provided.', |
91 | | - 496: 'Client SSL certificate required but not provided.', |
92 | | - 497: 'HTTP request sent to an HTTPS port by mistake.', |
93 | | - 499: 'Client closed the request before server responded.', |
| 87 | + // --- NGINX --- |
| 88 | + 444: 'No Response. No response returned; connection closed immediately.', |
| 89 | + 494: 'Request Header Too Large. Request header is too large to be processed by the server.', |
| 90 | + 495: 'SSL Certificate Error. Invalid client SSL certificate provided.', |
| 91 | + 496: 'SSL Certificate Required. Client SSL certificate required but not provided.', |
| 92 | + 497: 'HTTP Request Sent to HTTPS Port. HTTP request sent to an HTTPS port by mistake.', |
| 93 | + 499: 'Client Closed Request. Client closed the request before server responded.', |
94 | 94 |
|
95 | | - // Cloudflare |
96 | | - 520: 'Unknown error from origin server; connection reset or invalid response.', |
97 | | - 521: 'Origin server refused connection from Cloudflare.', |
98 | | - 522: 'TCP handshake timed out between Cloudflare and origin server.', |
99 | | - 523: 'Cloudflare could not reach the origin server.', |
100 | | - 524: 'Timeout occurred waiting for response from origin server.', |
101 | | - 525: 'SSL/TLS handshake failed between Cloudflare and origin server.', |
102 | | - 526: 'Origin server presented an invalid SSL certificate.', |
103 | | - 527: 'Request timed out or failed after WAN connection was established.', |
| 95 | + // --- Cloudflare --- |
| 96 | + 520: 'Unknown Error. Unknown error from origin server; connection reset or invalid response.', |
| 97 | + 521: 'Web Server Is Down. Origin server refused connection from Cloudflare.', |
| 98 | + 522: 'Connection Timed Out. TCP handshake timed out between Cloudflare and origin server.', |
| 99 | + 523: 'Origin Is Unreachable. Cloudflare could not reach the origin server.', |
| 100 | + 524: 'A Timeout Occurred. Timeout occurred waiting for response from origin server.', |
| 101 | + 525: 'SSL Handshake Failed. SSL/TLS handshake failed between Cloudflare and origin server.', |
| 102 | + 526: 'Invalid SSL Certificate. Origin server presented an invalid SSL certificate.', |
| 103 | + 527: 'Railgun Error. Request timed out or failed after WAN connection was established.', |
104 | 104 | } as const; |
105 | 105 |
|
106 | 106 |
|
107 | | -export type LongStatusMessage = |
108 | | - (typeof LongStatusMessages)[keyof typeof LongStatusMessages]; |
| 107 | +export type DetailedStatusMessage = |
| 108 | + (typeof DetailedStatusMessages)[keyof typeof DetailedStatusMessages]; |
0 commit comments