Errors return by CaseHandler should give a better idea of what the error is about.
An error should include:
- The endpoint URL description (what).
- The method that applied to the endpoint (action).
- The payload, if any, sent to the endpoint (action details).
- The expectation (what is the expected result).
- The result (what is the actual result).
- An error involves a JSON should also describe clearly the path of the expected value / the result.
Errors return by CaseHandler should give a better idea of what the error is about.
An error should include: