We employ semantic HTTP codes to signify the type of error that occurred, enabling more precise error handling.
If HTTP codes lack granularity, we offer a custom error code for more specific error handling scenarios. By default,
HTTP codes are used.
Custom error codes come into play when HTTP codes lack granularity. For instance, if you need to handle a particular
error in a specific manner, custom error codes allow for such tailored handling.
Custom error codes always consist of at least four digits to prevent conflicts with HTTP codes.
We call these custom error codes Api Codes.
Validation codes are just like Api Codes but instead of just a number, they contain String code and a message.
They are used to provide more detailed information about the validation-error that occurred.