Open gautambitious opened 3 years ago
Sometimes developers need to handle responses based on their status code. Can you add routes to return common status codes like 401, 404?
DummyJSON supports this: https://dummyjson.com/docs/http
fetch('https://dummyjson.com/http/404/Hello_Peter') .then(res => res.json()) .then(console.log);
Sometimes developers need to handle responses based on their status code. Can you add routes to return common status codes like 401, 404?