There was an error while loading. Please reload this page.
Suppose I create a request to http://example.com/404, and the response is 404 status code with a json response like this:
http://example.com/404
{ "type": "error", "message": "What you were looking for isn't here." }
How can I get the above json using fetch?