Improving Error Responses of APIM RESTful APIs
Problem
Some of the scenarios in REST APIs are returning incorrect HTTP status codes and error descriptions, often resulting in a 500 - Internal Server Error, which misleads API developers who apply changes to the APIs using the RESTful approach. This is observed much when an incorrect payload is passed to the rest api. So the response error codes should be 400 instead of 500. And proper error description should be returned as well.
Sub Tasks:
- [x] https://github.com/wso2/api-manager/issues/2971
- [ ] #2984
- [ ] #2985
- [ ] #2986
- [ ] #2992
- [ ] [adding this item for tracking only. change or add proper sub tasks appropriately.] Improving error responses of other rest apis.
[Related improvements for other REST Api operations will be added to the above list when they are scheduled and planned on how to proceed]
Solution
Handle error scenarios in REST api implementation properly and introducing Error Handlers properly
Affected Component
APIM
Version
4.2.0
Implementation
No response
Related Issues
No response
Suggested Labels
No response