0

From my backend I wrote a POST api which returns a 403 error if a condition occurs. Together with the 403 error I am also passing a JSON response. In my front end I am using an AJAX request, however I can't seem to be able to read the JSON response when this error occurs. Are there ways to handle/capture the error and then read the JSON response as well ?

I was going to use the .then method however an error still props up without returning the JSON response.

Luke Galea
  • 179
  • 2
  • 15

0 Answers0