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

Correct response codes for bad/unusable bboxes #235

Merged
merged 5 commits into from
Aug 18, 2021

Conversation

moradology
Copy link
Collaborator

This PR prevents 500s from being sent back to the user when parameters (BBox in particular, but it should help with others) are misconfigured. 400s should now be returned if users attempt a search with invalid bounding boxes. 501s will be returned for 6-length (not yet supported, 3D) bounding boxes.

Closes #222

@moradology moradology force-pushed the fix/search-bbox-400s branch from 62a7f4d to 8a410ae Compare August 18, 2021 16:15
@moradology moradology force-pushed the fix/search-bbox-400s branch from 8a410ae to c90526d Compare August 18, 2021 16:22
@lossyrob lossyrob merged commit ec64574 into stac-utils:master Aug 18, 2021
@lossyrob lossyrob deleted the fix/search-bbox-400s branch August 18, 2021 21:34
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

Successfully merging this pull request may close these issues.

for bbox query parameter, 3d bboxes and invalid bbox values return 500 instead of 400
2 participants