-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
updated error controller to better handle HTTP400 #647
base: master
Are you sure you want to change the base?
Conversation
…ontroller to handle HTPP400
I'm afraid that handling any IllegalArgumentException as a HTTP 400 is a little bit too optimistic. |
Yes, you are right. I will push a new commit to exclude IllegalArgumentException. I think it is still worth merging this as com.salesmanager.shop.store.controller.error.ShopErrorController has not been updated with 400 and errors under com.salesmanager.shop.controller.* has not been handled. |
Kudos, SonarCloud Quality Gate passed! |
Sounds good, thank you :) |
Kudos, SonarCloud Quality Gate passed! |
added IllegalArgumentException in the list, Generally, any error due to inputs should be a 400, HTTP 500 is for logic error.updated com.salesmanager.shop.store.controller.error.ShopErrorController. now it also handles errors from com.salesmanager.shop.controller.*
Closed #646related to #638