The error code
Optional additional fields that provide more information about the error
The code uniquely identifies the error and used in consumer error handling logic.
Format: UPPER_SNAKE_CASE
Optionalmessage?: stringHuman-readable error for logging.
Only necessary if error code is not descriptive enough. Or the same error code can be caused by various reasons (in rare cases that the consumer's action is the same for a group of errors).
An error is retryable if trying the same request at a later time may overcome the error
Business/functional errors caused and returned in services
Use in conjunction with Result. Instantiate with err function.