-
Notifications
You must be signed in to change notification settings - Fork 19
StatusCodes
Typically you are requesting a resource but you don't have the privilege to use this.
Check with the business why you don't have access to this resource.
An unexpected error is happening when an exception is raised by the service in an uncontrolled way, like an IO exception.
A trace id is added to the message so the support team can analyze what is the origin of the error.
No details are shared in order to prevent any exploitation of a security vulnerability or sensitive data.
An expected error is one generated by the business code. As an exception can contain sensitive data, the exception is logged. A trace id is added to the message so the support team can analyze what is the origin of the error.
When a message is validated and a validation error is encountered, a message explaining the problem is returned to the consumer of the api.