Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 7e1b164

Browse files
committed
Merge branch 'hotfix/208'
Close #208
2 parents 3614f51 + 1e3a801 commit 7e1b164

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,31 @@
22

33
All notable changes to this project will be documented in this file, in reverse chronological order by release.
44

5+
## 1.3.7 - 2016-10-11
6+
7+
### Added
8+
9+
- [#208](https://github.com/zendframework/zend-diactoros/pull/208) adds several
10+
missing response codes to `Zend\Diactoros\Response`, including:
11+
- 226 ('IM used')
12+
- 308 ('Permanent Redirect')
13+
- 444 ('Connection Closed Without Response')
14+
- 499 ('Client Closed Request')
15+
- 510 ('Not Extended')
16+
- 599 ('Network Connect Timeout Error')
17+
18+
### Deprecated
19+
20+
- Nothing.
21+
22+
### Removed
23+
24+
- Nothing.
25+
26+
### Fixed
27+
28+
- Nothing.
29+
530
## 1.3.6 - 2016-09-07
631

732
### Added

src/Response.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,17 @@ class Response implements ResponseInterface
4444
206 => 'Partial Content',
4545
207 => 'Multi-status',
4646
208 => 'Already Reported',
47+
226 => 'IM used',
4748
// REDIRECTION CODES
4849
300 => 'Multiple Choices',
4950
301 => 'Moved Permanently',
5051
302 => 'Found',
5152
303 => 'See Other',
5253
304 => 'Not Modified',
5354
305 => 'Use Proxy',
54-
306 => 'Switch Proxy', // Deprecated
55+
306 => 'Switch Proxy', // Deprecated to 306 => '(Unused)'
5556
307 => 'Temporary Redirect',
57+
308 => 'Permanent Redirect',
5658
// CLIENT ERROR
5759
400 => 'Bad Request',
5860
401 => 'Unauthorized',
@@ -73,6 +75,7 @@ class Response implements ResponseInterface
7375
416 => 'Requested range not satisfiable',
7476
417 => 'Expectation Failed',
7577
418 => 'I\'m a teapot',
78+
421 => 'Misdirected Request',
7679
422 => 'Unprocessable Entity',
7780
423 => 'Locked',
7881
424 => 'Failed Dependency',
@@ -81,8 +84,10 @@ class Response implements ResponseInterface
8184
428 => 'Precondition Required',
8285
429 => 'Too Many Requests',
8386
431 => 'Request Header Fields Too Large',
87+
444 => 'Connection Closed Without Response',
8488
451 => 'Unavailable For Legal Reasons',
8589
// SERVER ERROR
90+
499 => 'Client Closed Request',
8691
500 => 'Internal Server Error',
8792
501 => 'Not Implemented',
8893
502 => 'Bad Gateway',
@@ -92,7 +97,9 @@ class Response implements ResponseInterface
9297
506 => 'Variant Also Negotiates',
9398
507 => 'Insufficient Storage',
9499
508 => 'Loop Detected',
100+
510 => 'Not Extended',
95101
511 => 'Network Authentication Required',
102+
599 => 'Network Connect Timeout Error',
96103
];
97104

98105
/**

0 commit comments

Comments
 (0)