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

Requesting a resource with an unknown identifier results in incorrect HTTP result status code #17

Closed
tidal opened this issue Mar 5, 2015 · 2 comments
Labels

Comments

@tidal
Copy link

tidal commented Mar 5, 2015

Example requests with unknown IDs:

When requesting these "resources" the server sends back a HTTP status code 400.
Status Code 400 is defined as:
http://tools.ietf.org/html/rfc2616#section-10.4.1
"The request could not be understood by the server due to malformed
syntax. The client SHOULD NOT repeat the request without
modifications."

Since the requests are not malformed, but the resource is unknown, the server should respond with a 404 status code (or a 410 if the resource has been available before).

@lye
Copy link
Contributor

lye commented Mar 5, 2015

Makes sense to me. Just committed a fix, will get deployed at some point in the future.

@lye lye added the Bug label Mar 5, 2015
@lye
Copy link
Contributor

lye commented Mar 30, 2015

Live endpoints are now returning 404 for unknown/invalid IDs.

@lye lye closed this as completed Mar 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants