Skip to content

StatusCodes

GFlisch edited this page Dec 30, 2024 · 4 revisions

References for Status code errors.

Unauthorized

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.

Unexpected error

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.

Expected error

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.

Validation 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.