Answer the question
In order to leave comments, you need to log in
API what errors to return?
Hello! Please tell me what error codes to return from the domain layer (Domain Exeption) and validation errors. It seems to me that for domain errors 400 or 409, and for validation 422. Or is it better both there and there 422?
Answer the question
In order to leave comments, you need to log in
Negotiate. For the most part, there is no need to detail the errors in great detail, especially at the start of the project. In general, these are all completely different errors, for example:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question