from enum import Enum

class Code(str,Enum):
    PROCESS_SUCCESS_CODE = 'DB_0004'
    UNAUTHORIZATED_CODE = 'DB_ERROR_0006'
    REQUEST_NOT_COMPLETED_CODE = 'DB_ERROR_9999'
    DATA_NOT_FOUND_CODE = 'DB_ERROR_0404'
    APP_ERROR_CODE = 'DB_ERROR_APP'
    INVALID_REQUEST_PARAMS_CODE = 'DB_WARNING_INVALID_REQUEST_PARAMS'
    DATABASE_ERROR_CODE = 'DB_WARNING_DATABASE_ERROR'
    RSA_ERROR_CODE = 'DB_ERROR_RSA'
    AES_ERROR_CODE = 'DB_ERROR_AES'
    JWT_ERROR_CODE = 'DB_ERROR_JWT'
    HTTP_ERROR_CODE = 'DB_ERROR_HTTP'
    AZURE_ERROR_CODE = 'DB_ERROR_AZURE'
    REDIS_ERROR_CODE = 'DB_ERROR_REDIS'
    REQUEST_VALIDATION_ERROR_CODE = 'DB_REQUEST_VALIDATION_ERROR'
    MISSING_FIELD_ERROR_CODE = 'DB_ERROR_MISSING_FIELD'

    def __str__(self):
        return self.value
