typicode / jsonplaceholder

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

Requesting an unrecognized resource returns an empty response instead of 404 #10

Open igorsantos07 opened 10 years ago

igorsantos07 commented 10 years ago

A GET /santa-claus should return 404 instead of an empty object, right? Relates to #7 as it reported the same request returning 500.

Additionally, GET /santa-claus/1 returns an Express error.

typicode commented 10 years ago

It should, you're right. Thanks for creating an issue.

However, I have other projects I'd like to work on. So, unfortunately, I don't think I'll fix it soon.

igorsantos07 commented 10 years ago

You're welcome :)

I know how you feel, I've been overwelmed by work stuff and my OS projects are taking dust :( Good luck for both of us, the project in the current state have already helped a lot :D

typicode commented 10 years ago

Thanks for your understanding, and really glad it already helped :)