If a DELETE request on a resource fails because constraints prevent
the resource from being deleted, what should the correct HTTP response
There appears to be a lot of contention about this on the web, but I'm
unable to find a 'definitive guide' for the sort of REST API I'm
developing. Perhaps someone could point me in the right direction?
I'm currently of the opinion that 403 Forbidden is the best option,
although 405 Method Not Allowed sounds equally appropriate, or perhaps
even 409 Conflict.