Ocean Data Ancillary API returns incorrect response code
Posted: Thu Oct 26, 2023 4:41 am America/New_York
Hi,
When I attempt to download a file that doesn't exist e.g. https://oceandata.sci.gsfc.nasa.gov/getfile/GMAO_FP.20210906T030000.MET.NRT.nc the HTTP response is 200 rather than 404. For automated applications, this means it "succeeds" in downloading the file however in reality it has just downloaded a text file with the 404 Error - File GMAO_FP.20220710T000000.MET.NRT.nc not found. response.
Cheers
James
When I attempt to download a file that doesn't exist e.g. https://oceandata.sci.gsfc.nasa.gov/getfile/GMAO_FP.20210906T030000.MET.NRT.nc the HTTP response is 200 rather than 404. For automated applications, this means it "succeeds" in downloading the file however in reality it has just downloaded a text file with the 404 Error - File GMAO_FP.20220710T000000.MET.NRT.nc not found. response.
Cheers
James