Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 4797

REST 404 vs 400. Which one to use?

$
0
0

If I have a REST resource as shown below:

GET http://www.example.com/customers/{customerId}/orders

And in case the provided customerId does not exist, should my server return a 404 (Not Found) or a 400 (Bad Request)?


Viewing all articles
Browse latest Browse all 4797

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>