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

Hitting non-works pages should return a more instructive 404 #2874

Closed
alexwlchan opened this issue Oct 22, 2018 · 0 comments
Closed

Hitting non-works pages should return a more instructive 404 #2874

alexwlchan opened this issue Oct 22, 2018 · 0 comments

Comments

@alexwlchan
Copy link
Contributor

Trying to load https://api.wellcomecollection.org/catalogue/v2 gives you an empty 404. It should be a 404 in the catalogue style:

{
    "@context": "https://api.wellcomecollection.org/catalogue/v2/context.json",
    "errorType": "http",
    "httpStatus": 404,
    "label": "Not Found",
    "description": "Work not found for identifier 123",
    "type": "Error"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant