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)?
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)?