[EPIC] fix: error handling in REST API endpoints #1378
Labels
API_Server
bug
Something isn't working
Core_API
Changes related to the Core API Package
Developer_Experience
documentation
Improvements or additions to documentation
Epic
good-first-issue
Good for newcomers
good-first-issue-400-expert
Hacktoberfest
Hacktoberfest participants are welcome to take a stab at issues marked with this label.
Description
4xx and 5xx status codes should be used correctly throughout the codebase.
Right now there are instances where an exception thrown is hardcoded to lead to an HTTP 400 regardless of what the exception was.
We need to untangle on a case by case basis the issue above because in some cases the plugins throw exceptions that are user error related.
There should be documentation about error handling and with a decision tree where contributors can ask themselves a series of questions to determine what is the appropriate way of handling an error.
Acceptance Criteria
The text was updated successfully, but these errors were encountered: