netplugin
netplugin copied to clipboard
API returns 500's when deleting nonexistent resources
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
- Submit a DELETE request for a nonexistent resource to any API URL that supports the DELETE method.