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
Issues/32784 #35752
base: 2.4-develop
Are you sure you want to change the base?
Issues/32784 #35752
Conversation
…o be able to output REST HTTP 400 error instead of HTTP 500 error
…ors through web api
Hi @artskirk. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Run only required test builds during development. Run all test builds before sending your pull request for review. For more details, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@artskirk kindly sign the Adobe CLA for proceeding towards automated tests |
@magento run Unit Tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
CLA Signed |
Malformed request body or parameters cause "Internal Server Error"
Description (*)
I have implemented error handling with try/catch Exception due to the following REST api responses #32784 returns HTTP 500 "Internal Server Error" instead of HTTP 400 "Bad Request"
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Review the REST api responses provided in: #32784 or
use the Postman collection provided in this pull request.
Expected Result
The REST api responses returns HTTP 400 error code instead of HTTP 500 error
Questions or comments
Contribution checklist (*)