Why does my code execute despite error message? [closed]

I have Created a react app the allows me to enter form data and send it to my django backend.

I also have created a delete view that will trigger when the request containe the "DELETE" phrase.

I noticed that after sending a request which included the line of code below, I received a PUT 400 error on my browser as well as in the django console. However, the delete request was still executed. Kindly assist as i am confused about why the request still executed tho i got an error.

formData.append("drivers_license", "DELETE");

Back to Top