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

Bad objects/ API response when object ID does not exist #25

Open
genghisken opened this issue Mar 21, 2024 · 1 comment
Open

Bad objects/ API response when object ID does not exist #25

genghisken opened this issue Mar 21, 2024 · 1 comment

Comments

@genghisken
Copy link
Owner

Get a 500 error if the objectId does not exist when requesting object lightcurve.

@HeloiseS
Copy link

HeloiseS commented Mar 28, 2024

NOTE: in the ConeSerializer we return a message which may or may not contain the word error and we use that to get the views to return the correct error code back to the caller. We need to return to correct status code at the moment we just return the same code for many errors → we can expand to make it more accurate.

this will fix the problem for all API bits that might return specific HTTP error codes

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

2 participants