News for hackers. Stuff that matters.
Re:Best practices for REST API design (2020) by rocmcd on Monday February 22, 2021 @11:20AM (#26226266)
This is where error response messages should come into play. Returning a JSON object with a "message" attribute containing "No such route/path" vs "Object not found" depending on the context of the 404 makes it immediately clear where the issue is.

There are no comments on this comment yet.