|
|
|
|
|
by Feeble
1433 days ago
|
|
> But then we've lost standardization which is the whole point of the error codes to begin with. Returning 200 and then using response body to denote missing resource is no different. So you have to choose, either 404 can be invalid path and missing employee; or 200 can be valid data or missing employee. Personally I would prefer the former as 200/OK then indicates success. |
|
404 Not found is not exactly correct. I argue that the server found a representation of the object with that representation being "It does not exist".