A
A
Alexander Bondarenko2021-05-08 15:01:17
Django
Alexander Bondarenko, 2021-05-08 15:01:17

What HTTP status should be given to the client in case of an error in validation?

Hello! Such a question, I have a site for creating classes for different groups, I create them with Ajax, it is possible to create two classes on the same day and at the same time, but provided that one of them is for even weeks and the second for odd weeks, I throw a validation error and status code 412, is this the right solution in my situation? If not, what status should I give to the client?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bryuliks don't care how old you, 2021-05-08
@bond_1013

400

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question