10- Expected vs Unexpected Errors

I followed exactly as in the video but Axios throw out an error, neither ex.response or ex.request is working. is there any javascript updates format ?

1 Like

Can we see your code?

I just found out, the JSON placeholder website responds to it as a success request even though it’s not. so I used https://www.mocky.io/ to fix this problem and its work

2 Likes

This post just really helped me!!
trying for a few days to figure out why jsonplaceholder always returns status 200 for delete requests…
Thank you!!

1 Like

Hi @jufriazzq ,

Can you please let us know, what you did to fix the problem.
How did you used mock service worker ?

just use this URL " Mocky: The world's easiest & fastest tool to mock your APIs " to custom your own HTTP status (response) that u want