weather-gov / weather.gov

weather.gov 2.0
Other
331 stars 10 forks source link

[API] Product requests to fake WFO locations return 200 with empty result #1818

Open eric-gade opened 2 months ago

eric-gade commented 2 months ago

Description

If you make a request for a specific product with an invalid WFO code, you still get a 200 (successful) result, just with an empty list as the result.

Example.

As a user of the API, I would expect some kind of error code response, maybe even a 404 with an explanation that the given location is invalid.

Acceptance criteria

colinmurphy01 commented 1 month ago

Did we discuss this in API sync and diagnose the issue?