Skip to content

Add PATCH to created status, better error msg - #3766

Merged
hueniverse merged 6 commits into
hapijs:masterfrom
bioball:patch-1
Apr 2, 2018
Merged

hueniverse merged 6 commits into
hapijs:masterfrom
bioball:patch-1

Conversation

@bioball

@bioball bioball commented Mar 24, 2018

Copy link
Copy Markdown
Contributor

The created status code helper should also be valid at least for PATCH calls.

BTW: Should this assertion even exist? I'd be in favor of getting rid of it and allow developers break the rules as they see fit.

bioball added 2 commits March 24, 2018 11:31
The `created` status code helper should also be valid at least for `PATCH` calls.  I'm also not sure why this assertion even exists; I'd also be in favor of getting rid of it.
@bioball bioball changed the title Add PATCH to 201 status, better error msg Add PATCH to created status, better error msg Mar 24, 2018
@bioball
bioball force-pushed the patch-1 branch 2 times, most recently from 685f51c to 2937fbb Compare March 26, 2018 18:15
@hueniverse hueniverse self-assigned this Apr 2, 2018
@hueniverse hueniverse added the bug Bug or defect label Apr 2, 2018
@hueniverse hueniverse added this to the 17.3.1 milestone Apr 2, 2018
@hueniverse
hueniverse merged commit 08734ba into hapijs:master Apr 2, 2018
@hueniverse

Copy link
Copy Markdown
Contributor

You can still manually do what this does and violate HTTP rules on your own...

@bioball
bioball deleted the patch-1 branch April 2, 2018 21:42
@bioball

bioball commented Apr 2, 2018

Copy link
Copy Markdown
Contributor Author

Cool. Thanks!

@lock

lock Bot commented Jan 9, 2020

Copy link
Copy Markdown

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock Bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Bug or defect

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants