ITEnthusiasm
06/11/2022, 9:12 PMresponse.status
? Or do we have to find out from the response.json().status
?
(Stated differently, is there a way to know that an error occurred without JSON-ing the response?)rp_st
06/12/2022, 5:47 AMITEnthusiasm
06/12/2022, 11:00 AMjson
body?rp_st
06/12/2022, 11:01 AMITEnthusiasm
06/12/2022, 11:04 AMstatus
for a fetch
always seems to be 200
. I've been having to do await response.json()
to check the status
property on the JSON object (to know if there was an error or not)rp_st
06/12/2022, 11:05 AMrp_st
06/12/2022, 11:05 AMrp_st
06/12/2022, 11:06 AMITEnthusiasm
06/12/2022, 11:07 AM