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

Add missing HTTP status codes/messages #208

Merged
merged 2 commits into from
Oct 11, 2016

Conversation

ravage84
Copy link
Contributor

At cakephp/cakephp#9516, we were discussing missing status codes in CakePHP's and Zend's libraries.

This brings both (almost) in sync by adding missing status codes & messages.

Used https://httpstatuses.com/ as reference.

@@ -81,8 +83,10 @@ class Response implements ResponseInterface
428 => 'Precondition Required',
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@inoas
Copy link

inoas commented Sep 28, 2016

Would you consider changing 306 => 'Switch Proxy', // Deprecated to 306 => '(Unused)',?
Ref: cakephp/cakephp#9534

@weierophinney weierophinney added this to the 1.3.7 milestone Oct 11, 2016
@weierophinney weierophinney self-assigned this Oct 11, 2016
@weierophinney weierophinney merged commit 43b0f44 into zendframework:master Oct 11, 2016
weierophinney added a commit that referenced this pull request Oct 11, 2016
Add missing HTTP status codes/messages
weierophinney added a commit that referenced this pull request Oct 11, 2016
weierophinney added a commit that referenced this pull request Oct 11, 2016
weierophinney added a commit that referenced this pull request Oct 11, 2016
Forward port #208

Conflicts:
	CHANGELOG.md
@weierophinney
Copy link
Member

Thanks, @ravage84. @ionas -- I incorporated your suggestions on merge.

weierophinney added a commit that referenced this pull request Oct 11, 2016
`ResponseTest::testReasonPhraseCanBeEmpty()` was using status 599 as,
prior to #208, no default reason phrase was provided in `Response` for
that code. Now that there is, we need to use a different one. Updated to
555, as it is not currently reserved.
@ravage84 ravage84 deleted the patch-1 branch October 11, 2016 13:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants