You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@tloubrieu-jpl what's the motivation for changing the status code?
Here, collection is a bad value provided to an enumeration in /classes/{enum}, not a bad route or an entity reference (i.e. id) which is not found in the available data). i.e. it isn't looking for something and not finding it, rather it's failing validation.
If the issue is a lack of description in the returned message, that can (should) be fixed, for sure.
EDIT: After checking, it should be clear from the return what the issue is:
BadRequestException: No PdsProductClass matches swagger name 'collections''. Valid names are: aip, ancillary, attribute-definition, browse, bundle, [...]
Checked for duplicates
No - I haven't checked
π§βπ¬ User Persona(s)
API user
πͺ Motivation
...so that I can know where to fix my request.
so that the error behavior are consistent across the end-points provided.
π Additional Details
For example request: https://pds.mcp.nasa.gov/api/search/1/classes/collections
should return a 404 error and not a 400 error.
Acceptance Criteria
Given
When I perform
Then I expect
βοΈ Engineering Details
No response
π I&T
No response
The text was updated successfully, but these errors were encountered: