Page 1 of 1

Ocean Data Ancillary API returns incorrect response code

Posted: Thu Oct 26, 2023 4:41 am America/New_York
by eawagrs
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

Re: Ocean Data Ancillary API returns incorrect response code

Posted: Fri Oct 27, 2023 11:06 am America/New_York
by masoudso
Hello,
Thank you for your comment. The return status is changed to 404.

Masoud