Return status code 422 on validation failure