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

Update API endpoints error response code #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jrfarah
Copy link
Contributor

@jrfarah jrfarah commented Jan 28, 2025

Per issue #70 the API endpoints were returning error code 200 for retrieval failure, which was misleading as error code 200 indicates operation success. We update the following API endpoints to report error code 404 upon retrieval failure:

  • /api/v1/gw_contour
  • /api/v1/gw_skymap
  • /api/v1/grb_moc_file

The API endpoint now returns a 404 error if needed along with an error message describing what type of content was failed to retrieve.

Fixes #70

@jrfarah jrfarah requested a review from swyatt7 January 28, 2025 22:32
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.

API endpoints error response code should not be 200
1 participant