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

Empty/unknown POST body returning 200 #5

Open
donaldgray opened this issue Apr 17, 2020 · 1 comment
Open

Empty/unknown POST body returning 200 #5

donaldgray opened this issue Apr 17, 2020 · 1 comment

Comments

@donaldgray
Copy link
Member

If I make a call to POST /convert with an empty ({}), or unrecognised body I get a 200 response code back, with the following JSON:

{
    "message": "Unknown operation",
    "status": "error"
}

This should be a non 2xx (400?) response.

@donaldgray
Copy link
Member Author

This also happens if requesting "derivatives-only" and source is not a JP2

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