errorCode

abstract val errorCode: String

The error code that uniquely identifies the type of error.

Error codes should be:

  • Uppercase with underscores (e.g., "VALIDATION_ERROR", "NOT_FOUND")

  • Consistent across the application

  • Machine-readable for programmatic error handling

  • Used for internationalization and error categorization

The special code "Ok" indicates success.