netplugin icon indicating copy to clipboard operation
netplugin copied to clipboard

API returns 500's when deleting nonexistent resources

Open nick-oconnor opened this issue 7 years ago • 0 comments

Description

DELETE requests made to the API for nonexistent resources results in a text (non-json) message with error code 500. This results in clients having to text search the response to distinguish between nonexistent resources and internal server errors.

Expected Behavior

As per the API documentation, the API responds with error code 404.

Steps to Reproduce

  1. Submit a DELETE request for a nonexistent resource to any API URL that supports the DELETE method.

nick-oconnor avatar Aug 14 '17 19:08 nick-oconnor