3 ms·
Returning a 200 response for a resource that doesn't exist is wrong Isn't that just begging the question? What defines whether a resource exists? Is it the cli
by tremon 3y ago
Returning a 200 response for a resource that doesn't exist is wrong
Isn't that just begging the question? What defines whether a resource exists? Is it the client's knowledge about the webserver backend configuration, or the server's? If a server returns a 200 response, the resource exists, by definition. It may or may not have data, but again, that's not up to the client to decide. If the server says the resource exists and has no data, then that's the authoritative answer.