You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary
Need to add support for application specific error codes and user friendly error responses in api responses.
For example:
We send the below error response when the grant cannot be renewed yet.
err: failed to create appeal: checking grant extension eligibility: existing grant is not eligible for extension
This error is just the system errors propagated through the stack and sent as API response on create appeal flow. Instead of this, if the api response would have been something like you already have access to this resource. you cannot extend it yet (as example) would have been more user friendly and readable without knowing the guardian domain knowledge.
Additional Context
the actual system errors can be in logs, but the api responses can be more readable. This can be achieved through by catching all errors at the handler level and sending back simplified error back as api response.
The text was updated successfully, but these errors were encountered:
Summary
Need to add support for application specific error codes and user friendly error responses in api responses.
For example:
We send the below error response when the grant cannot be renewed yet.
err:
failed to create appeal: checking grant extension eligibility: existing grant is not eligible for extension
This error is just the system errors propagated through the stack and sent as API response on create appeal flow. Instead of this, if the api response would have been something like
you already have access to this resource. you cannot extend it yet
(as example) would have been more user friendly and readable without knowing the guardian domain knowledge.Additional Context
the actual system errors can be in logs, but the api responses can be more readable. This can be achieved through by catching all errors at the handler level and sending back simplified error back as api response.
The text was updated successfully, but these errors were encountered: