Change status code to 422 (UNPROCESSABLE ENTITY) on validation error
Test HTTP 422