What’s the right HTTP status code for a response when I can’t perform a DELETE due to a FK constrain?

Just found this website that says that ‘409 Conflict’ should be used
when ‘the request could not be completed due to a conflict with the current state of the resource’ and ‘where it is expected that the user might be able to resolve the conflict and resubmit the request’, then it gives an example when ‘cascade-delete is not supported’ which kinda resembles my scenario..

http://www.restapitutorial.com/httpstatuscodes.html

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)