typicode / jsonplaceholder

A simple online fake REST API server
https://jsonplaceholder.typicode.com
MIT License
5.05k stars 581 forks source link

Any way to simulate an error? #192

Open bitsnaps opened 1 year ago

bitsnaps commented 1 year ago

It's useful to response with 404 instead of empty content when requesting e.g. https://jsonplaceholder.typicode.com/posts/999, we usually use https://httpbin.org to simulate an error request.

Ovi commented 10 months ago

The status code is 404

abdulrhmanAlfiky commented 2 weeks ago

if you add it by a query parameter it will give you status code 200