Mock api not working

I generate the error, “Something went wrong” in my console, even though I have the correct url and I believed that I registered the project on my site correctly when attempting to send an ajax request.

link to mock API:

link to code from code pen:

https://codepen.io/noblegas/pen/LYYwpOv

https://codepen.io/noblegas/pen/LYYwpOv

Each time this code is run, the 404 error shows up in my console

Nothing really to recreate. Just refresh the page and , look at the console in the chrome or firefox browser, and it should show the message “Something went wrong” as would be written in my JS code if I got a url error.