Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the response status code for ValidationException in ExceptionHandlerHelper #106

Closed
emog opened this issue Nov 3, 2019 · 1 comment
Closed
Labels

Comments

@emog
Copy link

emog commented Nov 3, 2019

Please align the ValidationException code with the default one for laravel which is 422 instead of just 400 like in your code.

To Reproduce
Steps to reproduce the behavior:

  1. Add a route validation
  2. Make request to this route with invalid/missing data

Expected behavior
Receiving an status code 422

**Environemnt:Desktop (please complete the following information):

  • Name and version of OS: macOS Catalina
  • PHP version 7.3
  • Laravel version 6.4.0
@emog emog added the bug label Nov 3, 2019
@MarcinOrlowski
Copy link
Owner

MarcinOrlowski commented Nov 3, 2019

I am closing as duplicate of #105 as this is the same scope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants