3 ms·
404 means the server cannot find the requested resource. In the case of a database, the "resource" is the database endpoint. So, 404 would be used in case the
by everfree 3y ago
404 means the server cannot find the requested resource. In the case of a database, the "resource" is the database endpoint.
So, 404 would be used in case the database endpoint does not exist at the URL you tried to access it at. A query returning zero rows would be a "success" in HTTP terms.
- bruce343434 3y agoYep, for that 204 (OK, but no results) exists. But if you serve a browser a page with 204 in the header, it refuses to render anything since 204 mandates an empty body, so the browser doesn't even look at it.