-
Notifications
You must be signed in to change notification settings - Fork 75
Description
Discussed in #209
Originally posted by cjolson64 September 30, 2024
I've been building a basic web frontend for some datasets I have in ERDDAP and am running into a bit of messiness with some of my GET requests. When I run a query where there are no results, say because there is no data between the date ranges provided or some other type of filtering, I am getting a 404 error. I think 404 makes sense if the dataset cannot be found, but I feel like this should still give a 200 just with zero results, definitely open to having my mind changed though.
The real issue though is that whenever I get a 404 in this situation it comes back without CORS headers. Has anyone else run into this situation?
You can read the full discussion above. The proposed implementation plan is to have admin controlled setting for what kind of response status code is sent for no data requests and similar situations.