I have a REST API that for some of entpoinds like DELETE, POST or PUT I have some validation rules that can return an error.
Now I need a new type of an error like a non-critical error, that it should fail in a normal way, but should go for the action if there is a "supress warnings" flags send. Such an user can be asked: "Are you sure want to change this status, you are not finished yet"
Question: is there a best practice for these type of errors?
- Are there any HTTP semantic for such behaviour that I can user?
- do I still follow REST idea (for me it looks I do) - I keep it stateless