If the validation failed sets the response's status to bad request and prints the errors to its body.
See Implementation
If the validation failed sets the response's status to bad request and prints the errors to its body.