Rest API - HTTP Status Codes
You want your REST API to return a 204 status code when a DELETE request succeeds but with no content in the response body. Which code snippet correctly implements this?
res.status(204).send(); sends status 204 with empty body, which is correct. Sending JSON or message body breaks 204 rules.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions