Skip to content

Commit af17602

Browse files
committed
Added status codes
1 parent fee051c commit af17602

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- `Fixed` for any bug fixes.
1313
- `Security` in case of vulnerabilities
1414

15+
## [1.3.0] - 2021.04.21
16+
17+
### Added
18+
19+
- Added support for additional status codes.
20+
1521
## [1.2.1] - 2021.02.28
1622

1723
### Fixed

src/Response.php

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public function reset(): self
6060
205 => 'Partial Content',
6161
207 => 'Multi-Status',
6262
208 => 'Already Reported',
63+
218 => 'This is fine',
6364
226 => 'IM Used',
6465
300 => 'Multiple Choices',
6566
301 => 'Moved Permanently',
@@ -89,15 +90,31 @@ public function reset(): self
8990
416 => 'Range Not Satisfiable',
9091
417 => 'Expectation Failed',
9192
418 => 'I\'m a teapot',
93+
419 => 'Page Expired',
94+
420 => 'Enhance Your Calm',
9295
421 => 'Misdirected Request',
9396
422 => 'Unprocessable Entity',
9497
423 => 'Locked',
9598
424 => 'Failed Dependency',
99+
425 => 'Too Early',
96100
426 => 'Upgrade Required',
97101
428 => 'Precondition Required',
98102
429 => 'Too Many Requests',
103+
430 => 'Request Header Fields Too Large',
99104
431 => 'Request Header Fields Too Large',
105+
440 => 'Login Time-out',
106+
444 => 'No Response',
107+
449 => 'Retry With',
108+
450 => 'Blocked by Windows Parental Controls',
100109
451 => 'Unavailable For Legal Reasons',
110+
460 => 'Client Closed the Connection', // Verbiage mine
111+
463 => 'Too Many X-Forwarded-For Addresses', // Verbiage mine
112+
494 => 'Request header too large',
113+
495 => 'SSL Certificate Error',
114+
496 => 'SSL Certificate Required',
115+
497 => 'HTTP Request Sent to HTTPS Port',
116+
498 => 'Invalid Token',
117+
499 => 'Client Closed Request',
101118
500 => 'Internal Server Error',
102119
501 => 'Not Implemented',
103120
502 => 'Bad Gateway',
@@ -107,8 +124,21 @@ public function reset(): self
107124
506 => 'Variant Also Negotiates',
108125
507 => 'Insufficient Storage',
109126
508 => 'Loop Detected',
127+
509 => 'Bandwidth Limit Exceeded',
110128
510 => 'Not Extended',
111-
511 => 'Network Authentication Required'
129+
511 => 'Network Authentication Required',
130+
520 => 'Web Server Returned an Unknown Error',
131+
521 => 'Web Server Is Down',
132+
522 => 'Connection Timed Out',
133+
523 => 'Origin Is Unreachable',
134+
524 => 'A Timeout Occurred',
135+
525 => 'SSL Handshake Failed',
136+
526 => 'Invalid SSL Certificate',
137+
527 => 'Railgun Error',
138+
529 => 'Site is overloaded',
139+
530 => 'Site is frozen',
140+
561 => 'Unauthorized',
141+
598 => 'Network read timeout error'
112142
];
113143

114144
/**

0 commit comments

Comments
 (0)