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

Return error code 404 instead of 412 when dataset is not found #1176

Open
josvandervelde opened this issue Jan 13, 2023 · 0 comments
Open

Return error code 404 instead of 412 when dataset is not found #1176

josvandervelde opened this issue Jan 13, 2023 · 0 comments

Comments

@josvandervelde
Copy link
Contributor

Description

Minor issue, but 404 is the default for when a resource does not exist.

See for instance https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses
404: "In an API, this can also mean that the endpoint is valid but the resource itself does not exist."

Steps/Code to Reproduce

test.openml.org/api/v1/json/data/9999999999

Expected Results

Error code 404 (Not Found)

Actual Results

Error code 412 (Precondition failed)

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