|
|
|
|
|
by wiml
536 days ago
|
|
If the URL identifies a resource (REST-style) and that database entry doesn't exist, then yes, 404 is less confusing response. If the URL identifies an API endpoint (RPC-style) then, sure, tunnel the error inside a "I successfully failed to handle that request" response if you like. |
|
There is a difference between /api/entity/123 and /api/search with a payload of 123, though.