Ocean Data Ancillary API returns incorrect response code

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
eawagrs
Posts: 1
Joined: Thu Oct 26, 2023 4:37 am America/New_York
Answers: 0

Ocean Data Ancillary API returns incorrect response code

by eawagrs » 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

Tags:

OB WebDev - masoudso
Subject Matter Expert
Subject Matter Expert
Posts: 23
Joined: Tue Dec 22, 2020 2:11 pm America/New_York
Answers: 0
Has thanked: 2 times

Re: Ocean Data Ancillary API returns incorrect response code

by OB WebDev - masoudso » Fri Oct 27, 2023 11:06 am America/New_York

Hello,
Thank you for your comment. The return status is changed to 404.

Masoud

Post Reply