Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable PUT to missing to return 404 #238

Open
ordnungswidrig opened this issue Nov 11, 2015 · 0 comments
Open

Enable PUT to missing to return 404 #238

ordnungswidrig opened this issue Nov 11, 2015 · 0 comments

Comments

@ordnungswidrig
Copy link
Member

See #120 for the motivation. In some cases it's preferable to have the server return 404 on PUT to a non-existing resource.

Note: in general the semantic of PUT to a missing resource is that the resource will be created under that location. That means it makes sense for the server to answer with "not implemented" if it does not support the creation of the resource. PUT can mean create or update and "not found" is only sensible as response to the update case. But a PUT to a non-existing resource is a create, so "not found" doesn't make sense :-)

Anyways, people seem so require PUT-to-missing to return 404 and we should make this at least configurable. A work-around was sketched in #120 which worked by forcing the status code to 404 in handle-not-implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant