// Centralized error definitions.
package apperrorsx

import "net/http"

const (
	CodeInvalidRequest                = "INVALID_REQUEST"
	CodeInvalidDataType               = "INVALID_DATA_TYPE"
	CodeDataNotFound                  = "DATA_NOT_FOUND"
	CodeValidationError               = "VALIDATION_ERROR"
	CodeBusinessRuleFailed            = "BUSINESS_RULE_FAILED"
	CodeInternalServerError           = "INTERNAL_SERVER_ERROR"
	CodeSessionExpired                = "SESSION_EXPIRED"
	CodeTokenInvalid                  = "TOKEN_INVALID"
	CodeUserUnauthorized              = "USER_UNAUTHORIZED"
	CodeForbiddenAccess               = "FORBIDDEN_ACCESS"
	CodeAuthInvalidJSON               = "AUTH_INVALID_JSON"
	CodeAuthRegistrationDisabled      = "AUTH_REGISTRATION_DISABLED"
	CodeAuthRoleNotFound              = "AUTH_ROLE_NOT_FOUND"
	CodeAuthRegistrationFailed        = "AUTH_REGISTRATION_FAILED"
	CodeAuthInviteFailed              = "AUTH_INVITE_FAILED"
	CodeAuthSetPasswordFailed         = "AUTH_SET_PASSWORD_FAILED"
	CodeAuthSetPasswordTokenInvalid   = "AUTH_SET_PASSWORD_TOKEN_INVALID"
	CodeAuthUsernameAlreadyRegistered = "AUTH_USERNAME_ALREADY_REGISTERED"
	CodeAuthResetPasswordInvalidLink  = "AUTH_RESET_PASSWORD_INVALID_LINK"
	CodeAuthResetPasswordFailed       = "AUTH_RESET_PASSWORD_FAILED"

	CodePINVerificationRequired = "PIN_VERIFICATION_REQUIRED"
	CodePINIncorrect            = "PIN_INCORRECT"
	CodePINBlocked              = "PIN_BLOCKED"
	CodePINNotSet               = "PIN_NOT_SET"
	CodePINNotBlocked           = "PIN_NOT_BLOCKED"
	CodePINValidationFailed     = "PIN_VALIDATION_FAILED"
	CodePINAttemptLimitReached  = "PIN_ATTEMPT_LIMIT_REACHED"

	CodeHelicopterNotFound                = "HELICOPTER_NOT_FOUND"
	CodeHelicopterDuplicate               = "HELICOPTER_DUPLICATE"
	CodeHelicopterRelationDelete          = "HELICOPTER_RELATION_DELETE_ERROR"
	CodeHelicopterInvalidPayload          = "HELICOPTER_INVALID_PAYLOAD"
	CodeHelicopterInvalidType             = "HELICOPTER_INVALID_TYPE"
	CodeHelicopterInvalidJSON             = "HELICOPTER_INVALID_JSON"
	CodeHelicopterInvalidID               = "HELICOPTER_INVALID_ID"
	CodeHelicopterIDRequired              = "HELICOPTER_ID_REQUIRED"
	CodeHelicopterIDMismatch              = "HELICOPTER_ID_MISMATCH"
	CodeHelicopterAttributesRequired      = "HELICOPTER_ATTRIBUTES_REQUIRED"
	CodeHelicopterCreateFailed            = "HELICOPTER_CREATE_FAILED"
	CodeHelicopterUpdateFailed            = "HELICOPTER_UPDATE_FAILED"
	CodeHelicopterDeleteFailed            = "HELICOPTER_DELETE_FAILED"
	CodeHelicopterGenerateFailed          = "HELICOPTER_GENERATE_FAILED"
	CodeHelicopterListFailed              = "HELICOPTER_LIST_FAILED"
	CodeHelicopterPinVerificationRequired = "HELICOPTER_PIN_VERIFICATION_REQUIRED"
	CodeHelicopterUnauthorized            = "HELICOPTER_UNAUTHORIZED"
	CodeHelicopterFileNotFound            = "HELICOPTER_FILE_NOT_FOUND"
	CodeHelicopterFileInvalidPayload      = "HELICOPTER_FILE_INVALID_PAYLOAD"
	CodeHelicopterFileInvalidJSON         = "HELICOPTER_FILE_INVALID_JSON"
	CodeHelicopterFileInvalidUUID         = "HELICOPTER_FILE_INVALID_UUID"
	CodeHelicopterFileSectionInvalid      = "HELICOPTER_FILE_SECTION_INVALID"
	CodeHelicopterFileFileNameRequired    = "HELICOPTER_FILE_FILE_NAME_REQUIRED"
	CodeHelicopterFileCreateFailed        = "HELICOPTER_FILE_CREATE_FAILED"
	CodeHelicopterFileUpdateFailed        = "HELICOPTER_FILE_UPDATE_FAILED"
	CodeHelicopterFileDeleteFailed        = "HELICOPTER_FILE_DELETE_FAILED"
	CodeHelicopterFileGetFailed           = "HELICOPTER_FILE_GET_FAILED"
	CodeHelicopterFileListFailed          = "HELICOPTER_FILE_LIST_FAILED"
	CodeHelicopterUsageNotFound           = "HELICOPTER_USAGE_NOT_FOUND"
	CodeHelicopterUsageDuplicate          = "HELICOPTER_USAGE_DUPLICATE"
	CodeHelicopterUsageRelationDelete     = "HELICOPTER_USAGE_RELATION_DELETE_ERROR"
	CodeHelicopterUsageInvalidPayload     = "HELICOPTER_USAGE_INVALID_PAYLOAD"
	CodeHelicopterUsageInvalidJSON        = "HELICOPTER_USAGE_INVALID_JSON"
	CodeHelicopterUsageInvalidUUID        = "HELICOPTER_USAGE_INVALID_UUID"
	CodeHelicopterUsageIDRequired         = "HELICOPTER_USAGE_ID_REQUIRED"
	CodeHelicopterUsageIDMismatch         = "HELICOPTER_USAGE_ID_MISMATCH"
	CodeHelicopterUsageAttributesRequired = "HELICOPTER_USAGE_ATTRIBUTES_REQUIRED"
	CodeHelicopterUsageCreateFailed       = "HELICOPTER_USAGE_CREATE_FAILED"
	CodeHelicopterUsageGetFailed          = "HELICOPTER_USAGE_GET_FAILED"
	CodeHelicopterUsageUpdateFailed       = "HELICOPTER_USAGE_UPDATE_FAILED"
	CodeHelicopterUsageDeleteFailed       = "HELICOPTER_USAGE_DELETE_FAILED"
	CodeHelicopterUsageListFailed         = "HELICOPTER_USAGE_LIST_FAILED"
	CodeHelicopterUsageSyncFailed         = "HELICOPTER_USAGE_SYNC_FAILED"

	CodeFMReportNotFound       = "FM_REPORT_NOT_FOUND"
	CodeFMReportInvalidJSON    = "FM_REPORT_INVALID_JSON"
	CodeFMReportInvalidUUID    = "FM_REPORT_INVALID_UUID"
	CodeFMReportInvalidPayload = "FM_REPORT_INVALID_PAYLOAD"
	CodeFMReportCompleteFailed = "FM_REPORT_COMPLETE_FAILED"
	CodeFMReportLocked         = "FM_REPORT_LOCKED"

	CodeUserNotFound           = "USER_NOT_FOUND"
	CodeUserInvalidPayload     = "USER_INVALID_PAYLOAD"
	CodeUserInvalidJSON        = "USER_INVALID_JSON"
	CodeUserInvalidUUID        = "USER_INVALID_UUID"
	CodeUserValidationFailed   = "USER_VALIDATION_FAILED"
	CodeUserCreateFailed       = "USER_CREATE_FAILED"
	CodeUserUpdateFailed       = "USER_UPDATE_FAILED"
	CodeUserDeleteFailed       = "USER_DELETE_FAILED"
	CodeUserListFailed         = "USER_LIST_FAILED"
	CodeUserTimezoneInvalid    = "USER_TIMEZONE_INVALID"
	CodeUserRoleIDsInvalid     = "USER_ROLE_IDS_INVALID"
	CodeUserRoleIDsRequired    = "USER_ROLE_IDS_REQUIRED"
	CodeUserPrimaryRoleInvalid = "USER_PRIMARY_ROLE_INVALID"

	CodeMasterDataNotFound         = "MASTER_DATA_NOT_FOUND"
	CodeMasterDataInvalidPayload   = "MASTER_DATA_INVALID_PAYLOAD"
	CodeMasterDataInvalidJSON      = "MASTER_DATA_INVALID_JSON"
	CodeMasterDataValidationFailed = "MASTER_DATA_VALIDATION_FAILED"
	CodeMasterDataCreateFailed     = "MASTER_DATA_CREATE_FAILED"
	CodeMasterDataUpdateFailed     = "MASTER_DATA_UPDATE_FAILED"
	CodeMasterDataDeleteFailed     = "MASTER_DATA_DELETE_FAILED"
	CodeMasterDataListFailed       = "MASTER_DATA_LIST_FAILED"

	CodeDutyRosterNotFound               = "DUTY_ROSTER_NOT_FOUND"
	CodeDutyRosterInvalidPayload         = "DUTY_ROSTER_INVALID_PAYLOAD"
	CodeDutyRosterInvalidJSON            = "DUTY_ROSTER_INVALID_JSON"
	CodeDutyRosterInvalidUUID            = "DUTY_ROSTER_INVALID_UUID"
	CodeDutyRosterValidationFailed       = "DUTY_ROSTER_VALIDATION_FAILED"
	CodeDutyRosterConflict               = "DUTY_ROSTER_CONFLICT"
	CodeDutyRosterCreateFailed           = "DUTY_ROSTER_CREATE_FAILED"
	CodeDutyRosterUpdateFailed           = "DUTY_ROSTER_UPDATE_FAILED"
	CodeDutyRosterDeleteFailed           = "DUTY_ROSTER_DELETE_FAILED"
	CodeDutyRosterListFailed             = "DUTY_ROSTER_LIST_FAILED"
	CodeDutyRosterUnauthorized           = "DUTY_ROSTER_UNAUTHORIZED"
	CodeDutyRosterBaseTypeInvalid        = "DUTY_ROSTER_BASE_TYPE_INVALID"
	CodeDutyRosterRelationDeleteConflict = "DUTY_ROSTER_RELATION_DELETE_ERROR"
	CodeDULNotFound                      = "DUL_NOT_FOUND"
	CodeDULInvalidPayload                = "DUL_INVALID_PAYLOAD"
	CodeDULInvalidJSON                   = "DUL_INVALID_JSON"
	CodeDULInvalidUUID                   = "DUL_INVALID_UUID"
	CodeDULValidationFailed              = "DUL_VALIDATION_FAILED"
	CodeDULCreateFailed                  = "DUL_CREATE_FAILED"
	CodeDULUpdateFailed                  = "DUL_UPDATE_FAILED"
	CodeDULDeleteFailed                  = "DUL_DELETE_FAILED"
	CodeDULListFailed                    = "DUL_LIST_FAILED"
	CodeDULDateInvalid                   = "DUL_DATE_INVALID"

	CodeFlightNotFound         = "FLIGHT_NOT_FOUND"
	CodeFlightInvalidPayload   = "FLIGHT_INVALID_PAYLOAD"
	CodeFlightInvalidJSON      = "FLIGHT_INVALID_JSON"
	CodeFlightInvalidUUID      = "FLIGHT_INVALID_UUID"
	CodeFlightValidationFailed = "FLIGHT_VALIDATION_FAILED"
	CodeFlightCreateFailed     = "FLIGHT_CREATE_FAILED"
	CodeFlightGetFailed        = "FLIGHT_GET_FAILED"
	CodeFlightListFailed       = "FLIGHT_LIST_FAILED"
	CodeFlightUnauthorized     = "FLIGHT_UNAUTHORIZED"
	CodeFlightDateInvalid      = "FLIGHT_DATE_INVALID"

	CodeNoIcaoCodeNotFound           = "NO_ICAO_CODE_NOT_FOUND"
	CodeNoIcaoCodeRelationDelete     = "NO_ICAO_CODE_RELATION_DELETE_ERROR"
	CodeNoIcaoCodeInvalidPayload     = "NO_ICAO_CODE_INVALID_PAYLOAD"
	CodeNoIcaoCodeInvalidJSON        = "NO_ICAO_CODE_INVALID_JSON"
	CodeNoIcaoCodeInvalidUUID        = "NO_ICAO_CODE_INVALID_UUID"
	CodeNoIcaoCodeIDRequired         = "NO_ICAO_CODE_ID_REQUIRED"
	CodeNoIcaoCodeIDMismatch         = "NO_ICAO_CODE_ID_MISMATCH"
	CodeNoIcaoCodeAttributesRequired = "NO_ICAO_CODE_ATTRIBUTES_REQUIRED"
	CodeNoIcaoCodeNameRequired       = "NO_ICAO_CODE_NAME_REQUIRED"
	CodeNoIcaoCodeCreateFailed       = "NO_ICAO_CODE_CREATE_FAILED"
	CodeNoIcaoCodeUpdateFailed       = "NO_ICAO_CODE_UPDATE_FAILED"
	CodeNoIcaoCodeDeleteFailed       = "NO_ICAO_CODE_DELETE_FAILED"
	CodeNoIcaoCodeListFailed         = "NO_ICAO_CODE_LIST_FAILED"
	CodeHospitalNotFound             = CodeNoIcaoCodeNotFound
	CodeHospitalRelationDelete       = CodeNoIcaoCodeRelationDelete
	CodeHospitalInvalidPayload       = CodeNoIcaoCodeInvalidPayload
	CodeHospitalInvalidJSON          = CodeNoIcaoCodeInvalidJSON
	CodeHospitalInvalidUUID          = CodeNoIcaoCodeInvalidUUID
	CodeHospitalIDRequired           = CodeNoIcaoCodeIDRequired
	CodeHospitalIDMismatch           = CodeNoIcaoCodeIDMismatch
	CodeHospitalAttributesRequired   = CodeNoIcaoCodeAttributesRequired
	CodeHospitalNameRequired         = CodeNoIcaoCodeNameRequired
	CodeHospitalCreateFailed         = CodeNoIcaoCodeCreateFailed
	CodeHospitalUpdateFailed         = CodeNoIcaoCodeUpdateFailed
	CodeHospitalDeleteFailed         = CodeNoIcaoCodeDeleteFailed
	CodeHospitalListFailed           = CodeNoIcaoCodeListFailed

	CodeBaseNotFound                  = "BASE_NOT_FOUND"
	CodeBaseRelationDelete            = "BASE_DELETE_CONFLICT"
	CodeBaseInvalidPayload            = "BASE_INVALID_PAYLOAD"
	CodeBaseInvalidJSON               = "BASE_INVALID_JSON"
	CodeBaseInvalidUUID               = "BASE_INVALID_UUID"
	CodeBaseInvalidCategory           = "BASE_INVALID_CATEGORY"
	CodeBaseAttributesRequired        = "BASE_ATTRIBUTES_REQUIRED"
	CodeBaseNameRequired              = "BASE_NAME_REQUIRED"
	CodeBaseDefaultShiftStartRequired = "BASE_DEFAULT_SHIFT_START_REQUIRED"
	CodeBaseDefaultShiftEndRequired   = "BASE_DEFAULT_SHIFT_END_REQUIRED"
	CodeBaseCreateFailed              = "BASE_CREATE_FAILED"
	CodeBaseUpdateFailed              = "BASE_UPDATE_FAILED"
	CodeBaseDeleteFailed              = "BASE_DELETE_FAILED"
	CodeBaseListFailed                = "BASE_LIST_FAILED"
	CodeBaseInvalidContactIDs         = "BASE_INVALID_CONTACT_IDS"
	CodeBaseInvalidTime               = "BASE_INVALID_TIME"

	CodeFacilityNotFound           = "FACILITY_NOT_FOUND"
	CodeFacilityRelationDelete     = "FACILITY_RELATION_DELETE_ERROR"
	CodeFacilityInvalidPayload     = "FACILITY_INVALID_PAYLOAD"
	CodeFacilityInvalidJSON        = "FACILITY_INVALID_JSON"
	CodeFacilityInvalidUUID        = "FACILITY_INVALID_UUID"
	CodeFacilityAttributesRequired = "FACILITY_ATTRIBUTES_REQUIRED"
	CodeFacilityCategoryRequired   = "FACILITY_CATEGORY_REQUIRED"
	CodeFacilityNameRequired       = "FACILITY_NAME_REQUIRED"
	CodeFacilityTypeRequired       = "FACILITY_TYPE_REQUIRED"
	CodeFacilityCreateFailed       = "FACILITY_CREATE_FAILED"
	CodeFacilityUpdateFailed       = "FACILITY_UPDATE_FAILED"
	CodeFacilityDeleteFailed       = "FACILITY_DELETE_FAILED"
	CodeFacilityListFailed         = "FACILITY_LIST_FAILED"

	CodeFederalStateNotFound           = "FEDERAL_STATE_NOT_FOUND"
	CodeFederalStateRelationDelete     = "FEDERAL_STATE_RELATION_DELETE_ERROR"
	CodeFederalStateInvalidPayload     = "FEDERAL_STATE_INVALID_PAYLOAD"
	CodeFederalStateInvalidJSON        = "FEDERAL_STATE_INVALID_JSON"
	CodeFederalStateInvalidID          = "FEDERAL_STATE_INVALID_ID"
	CodeFederalStateLandIDInvalid      = "FEDERAL_STATE_LAND_ID_INVALID"
	CodeFederalStateIDRequired         = "FEDERAL_STATE_ID_REQUIRED"
	CodeFederalStateIDMismatch         = "FEDERAL_STATE_ID_MISMATCH"
	CodeFederalStateAttributesRequired = "FEDERAL_STATE_ATTRIBUTES_REQUIRED"
	CodeFederalStateNameRequired       = "FEDERAL_STATE_NAME_REQUIRED"
	CodeFederalStateCreateFailed       = "FEDERAL_STATE_CREATE_FAILED"
	CodeFederalStateUpdateFailed       = "FEDERAL_STATE_UPDATE_FAILED"
	CodeFederalStateDeleteFailed       = "FEDERAL_STATE_DELETE_FAILED"
	CodeFederalStateListFailed         = "FEDERAL_STATE_LIST_FAILED"

	CodeNationalityNotFound           = "NATIONALITY_NOT_FOUND"
	CodeNationalityRelationDelete     = "NATIONALITY_RELATION_DELETE_ERROR"
	CodeNationalityInvalidPayload     = "NATIONALITY_INVALID_PAYLOAD"
	CodeNationalityInvalidJSON        = "NATIONALITY_INVALID_JSON"
	CodeNationalityInvalidUUID        = "NATIONALITY_INVALID_UUID"
	CodeNationalityIDRequired         = "NATIONALITY_ID_REQUIRED"
	CodeNationalityIDMismatch         = "NATIONALITY_ID_MISMATCH"
	CodeNationalityAttributesRequired = "NATIONALITY_ATTRIBUTES_REQUIRED"
	CodeNationalityNameRequired       = "NATIONALITY_NAME_REQUIRED"
	CodeNationalityCreateFailed       = "NATIONALITY_CREATE_FAILED"
	CodeNationalityUpdateFailed       = "NATIONALITY_UPDATE_FAILED"
	CodeNationalityDeleteFailed       = "NATIONALITY_DELETE_FAILED"
	CodeNationalityListFailed         = "NATIONALITY_LIST_FAILED"

	CodeCountryNotFound           = "COUNTRY_NOT_FOUND"
	CodeCountryRelationDelete     = "COUNTRY_RELATION_DELETE_ERROR"
	CodeCountryInvalidPayload     = "COUNTRY_INVALID_PAYLOAD"
	CodeCountryInvalidJSON        = "COUNTRY_INVALID_JSON"
	CodeCountryInvalidID          = "COUNTRY_INVALID_ID"
	CodeCountryIDRequired         = "COUNTRY_ID_REQUIRED"
	CodeCountryIDMismatch         = "COUNTRY_ID_MISMATCH"
	CodeCountryAttributesRequired = "COUNTRY_ATTRIBUTES_REQUIRED"
	CodeCountryNameRequired       = "COUNTRY_NAME_REQUIRED"
	CodeCountryISOCodeInvalid     = "COUNTRY_ISO_CODE_INVALID"
	CodeCountryISOCodeDuplicate   = "COUNTRY_ISO_CODE_DUPLICATE"
	CodeCountryCreateFailed       = "COUNTRY_CREATE_FAILED"
	CodeCountryUpdateFailed       = "COUNTRY_UPDATE_FAILED"
	CodeCountryDeleteFailed       = "COUNTRY_DELETE_FAILED"
	CodeCountryListFailed         = "COUNTRY_LIST_FAILED"
	CodeLandNotFound              = CodeCountryNotFound
	CodeLandRelationDelete        = CodeCountryRelationDelete
	CodeLandInvalidPayload        = CodeCountryInvalidPayload
	CodeLandInvalidJSON           = CodeCountryInvalidJSON
	CodeLandInvalidID             = CodeCountryInvalidID
	CodeLandIDRequired            = CodeCountryIDRequired
	CodeLandIDMismatch            = CodeCountryIDMismatch
	CodeLandAttributesRequired    = CodeCountryAttributesRequired
	CodeLandNameRequired          = CodeCountryNameRequired
	CodeLandISOCodeInvalid        = CodeCountryISOCodeInvalid
	CodeLandISOCodeDuplicate      = CodeCountryISOCodeDuplicate
	CodeLandCreateFailed          = CodeCountryCreateFailed
	CodeLandUpdateFailed          = CodeCountryUpdateFailed
	CodeLandDeleteFailed          = CodeCountryDeleteFailed
	CodeLandListFailed            = CodeCountryListFailed

	CodeICAONotFound            = "ICAO_NOT_FOUND"
	CodeICAORelationDelete      = "ICAO_RELATION_DELETE_ERROR"
	CodeICAOInvalidPayload      = "ICAO_INVALID_PAYLOAD"
	CodeICAOInvalidJSON         = "ICAO_INVALID_JSON"
	CodeICAOInvalidUUID         = "ICAO_INVALID_UUID"
	CodeICAOIDRequired          = "ICAO_ID_REQUIRED"
	CodeICAOIDMismatch          = "ICAO_ID_MISMATCH"
	CodeICAOAttributesRequired  = "ICAO_ATTRIBUTES_REQUIRED"
	CodeICAOCodeRequired        = "ICAO_CODE_REQUIRED"
	CodeICAOLandIDInvalid       = "ICAO_LAND_ID_INVALID"
	CodeICAOFederalStateInvalid = "ICAO_FEDERAL_STATE_ID_INVALID"
	CodeICAOCreateFailed        = "ICAO_CREATE_FAILED"
	CodeICAOUpdateFailed        = "ICAO_UPDATE_FAILED"
	CodeICAODeleteFailed        = "ICAO_DELETE_FAILED"
	CodeICAOListFailed          = "ICAO_LIST_FAILED"

	CodeVocationNotFound           = "VOCATION_NOT_FOUND"
	CodeVocationRelationDelete     = "VOCATION_RELATION_DELETE_ERROR"
	CodeVocationInvalidPayload     = "VOCATION_INVALID_PAYLOAD"
	CodeVocationInvalidJSON        = "VOCATION_INVALID_JSON"
	CodeVocationInvalidUUID        = "VOCATION_INVALID_UUID"
	CodeVocationIDRequired         = "VOCATION_ID_REQUIRED"
	CodeVocationIDMismatch         = "VOCATION_ID_MISMATCH"
	CodeVocationAttributesRequired = "VOCATION_ATTRIBUTES_REQUIRED"
	CodeVocationNameRequired       = "VOCATION_NAME_REQUIRED"
	CodeVocationCreateFailed       = "VOCATION_CREATE_FAILED"
	CodeVocationUpdateFailed       = "VOCATION_UPDATE_FAILED"
	CodeVocationDeleteFailed       = "VOCATION_DELETE_FAILED"
	CodeVocationListFailed         = "VOCATION_LIST_FAILED"

	CodeHealthInsuranceNotFound           = "HEALTH_INSURANCE_COMPANY_NOT_FOUND"
	CodeHealthInsuranceRelationDelete     = "HEALTH_INSURANCE_COMPANY_RELATION_DELETE_ERROR"
	CodeHealthInsuranceInvalidPayload     = "HEALTH_INSURANCE_COMPANY_INVALID_PAYLOAD"
	CodeHealthInsuranceInvalidJSON        = "HEALTH_INSURANCE_COMPANY_INVALID_JSON"
	CodeHealthInsuranceInvalidUUID        = "HEALTH_INSURANCE_COMPANY_INVALID_UUID"
	CodeHealthInsuranceIDRequired         = "HEALTH_INSURANCE_COMPANY_ID_REQUIRED"
	CodeHealthInsuranceIDMismatch         = "HEALTH_INSURANCE_COMPANY_ID_MISMATCH"
	CodeHealthInsuranceAttributesRequired = "HEALTH_INSURANCE_COMPANY_ATTRIBUTES_REQUIRED"
	CodeHealthInsuranceNameRequired       = "HEALTH_INSURANCE_COMPANY_NAME_REQUIRED"
	CodeHealthInsuranceLandIDInvalid      = "HEALTH_INSURANCE_COMPANY_LAND_ID_INVALID"
	CodeHealthInsuranceCreateFailed       = "HEALTH_INSURANCE_COMPANY_CREATE_FAILED"
	CodeHealthInsuranceUpdateFailed       = "HEALTH_INSURANCE_COMPANY_UPDATE_FAILED"
	CodeHealthInsuranceDeleteFailed       = "HEALTH_INSURANCE_COMPANY_DELETE_FAILED"
	CodeHealthInsuranceListFailed         = "HEALTH_INSURANCE_COMPANY_LIST_FAILED"

	CodeMedicineNotFound                = "MEDICINE_NOT_FOUND"
	CodeMedicineRelationDelete          = "MEDICINE_RELATION_DELETE_ERROR"
	CodeMedicineInvalidPayload          = "MEDICINE_INVALID_PAYLOAD"
	CodeMedicineInvalidJSON             = "MEDICINE_INVALID_JSON"
	CodeMedicineInvalidUUID             = "MEDICINE_INVALID_UUID"
	CodeMedicineIDRequired              = "MEDICINE_ID_REQUIRED"
	CodeMedicineIDMismatch              = "MEDICINE_ID_MISMATCH"
	CodeMedicineAttributesRequired      = "MEDICINE_ATTRIBUTES_REQUIRED"
	CodeMedicineNameRequired            = "MEDICINE_NAME_REQUIRED"
	CodeMedicineGroupIDInvalid          = "MEDICINE_GROUP_ID_INVALID"
	CodeMedicineMotorReactionIDInvalid  = "MEDICINE_MOTOR_REACTION_ID_INVALID"
	CodeMedicineMotorReactionIDsInvalid = "MEDICINE_MOTOR_REACTION_IDS_INVALID"
	CodeMedicineCreateFailed            = "MEDICINE_CREATE_FAILED"
	CodeMedicineUpdateFailed            = "MEDICINE_UPDATE_FAILED"
	CodeMedicineDeleteFailed            = "MEDICINE_DELETE_FAILED"
	CodeMedicineListFailed              = "MEDICINE_LIST_FAILED"

	CodeMasterSettingsNotFound              = "MASTER_SETTINGS_NOT_FOUND"
	CodeMasterSettingsInvalidPayload        = "MASTER_SETTINGS_INVALID_PAYLOAD"
	CodeMasterSettingsInvalidJSON           = "MASTER_SETTINGS_INVALID_JSON"
	CodeMasterSettingsInvalidUUID           = "MASTER_SETTINGS_INVALID_UUID"
	CodeMasterSettingsIDRequired            = "MASTER_SETTINGS_ID_REQUIRED"
	CodeMasterSettingsIDMismatch            = "MASTER_SETTINGS_ID_MISMATCH"
	CodeMasterSettingsAttributesRequired    = "MASTER_SETTINGS_ATTRIBUTES_REQUIRED"
	CodeMasterSettingsCompanyNameRequired   = "MASTER_SETTINGS_COMPANY_NAME_REQUIRED"
	CodeMasterSettingsLogoFileInvalid       = "MASTER_SETTINGS_LOGO_FILE_INVALID"
	CodeMasterSettingsCoverFileInvalid      = "MASTER_SETTINGS_COVER_FILE_INVALID"
	CodeMasterSettingsCreateFailed          = "MASTER_SETTINGS_CREATE_FAILED"
	CodeMasterSettingsUpdateFailed          = "MASTER_SETTINGS_UPDATE_FAILED"
	CodeMasterSettingsDeleteFailed          = "MASTER_SETTINGS_DELETE_FAILED"
	CodeMasterSettingsGetFailed             = "MASTER_SETTINGS_GET_FAILED"
	CodeMasterSettingsMicrosoftUpsertFailed = "MASTER_SETTINGS_MICROSOFT_ENTRA_UPSERT_FAILED"
	CodeBrandingLogoFetchFailed             = "BRANDING_LOGO_FETCH_FAILED"
	CodeBrandingCoverFetchFailed            = "BRANDING_COVER_FETCH_FAILED"
	CodeBrandingEmailLogoFetchFailed        = "BRANDING_EMAIL_LOGO_FETCH_FAILED"
	CodeBrandingContentFetchFailed          = "BRANDING_CONTENT_FETCH_FAILED"
	CodeBrandingStorageUnavailable          = "BRANDING_STORAGE_UNAVAILABLE"
	CodeBrandingFileManagerUnavailable      = "BRANDING_FILE_MANAGER_UNAVAILABLE"

	CodeFileManagerStorageUnavailable           = "FILE_MANAGER_STORAGE_UNAVAILABLE"
	CodeFileManagerQueueUnavailable             = "FILE_MANAGER_QUEUE_UNAVAILABLE"
	CodeFileManagerUploadIntentUnavailable      = "FILE_MANAGER_UPLOAD_INTENT_UNAVAILABLE"
	CodeFileManagerAttachmentServiceUnavailable = "FILE_MANAGER_ATTACHMENT_SERVICE_UNAVAILABLE"
	CodeFileManagerFolderNotFound               = "FILE_MANAGER_FOLDER_NOT_FOUND"
	CodeFileManagerFileNotFound                 = "FILE_MANAGER_FILE_NOT_FOUND"
	CodeFileManagerAttachmentNotFound           = "FILE_MANAGER_ATTACHMENT_NOT_FOUND"
	CodeFileManagerUploadIntentNotFound         = "FILE_MANAGER_UPLOAD_INTENT_NOT_FOUND"
	CodeFileManagerStatusConflict               = "FILE_MANAGER_STATUS_CONFLICT"
	CodeFileManagerUploadIntentConflict         = "FILE_MANAGER_UPLOAD_INTENT_CONFLICT"
	CodeFileManagerValidationFailed             = "FILE_MANAGER_VALIDATION_FAILED"
	CodeFileManagerActionFailed                 = "FILE_MANAGER_ACTION_FAILED"
	CodeFileManagerWOPIServiceUnavailable       = "FILE_MANAGER_WOPI_SERVICE_UNAVAILABLE"
	CodeFileManagerWOPIInvalidFileID            = "FILE_MANAGER_WOPI_INVALID_FILE_ID"
	CodeFileManagerWOPIInvalidToken             = "FILE_MANAGER_WOPI_INVALID_TOKEN"
	CodeFileManagerWOPIInvalidProof             = "FILE_MANAGER_WOPI_INVALID_PROOF"
	CodeFileManagerWOPIPermissionDenied         = "FILE_MANAGER_WOPI_PERMISSION_DENIED"
	CodeFileManagerWOPIFileNotFound             = "FILE_MANAGER_WOPI_FILE_NOT_FOUND"
	CodeFileManagerWOPILockConflict             = "FILE_MANAGER_WOPI_LOCK_CONFLICT"
	CodeFileManagerWOPIStaleTimestamp           = "FILE_MANAGER_WOPI_STALE_TIMESTAMP"
	CodeFileManagerWOPIValidationFailed         = "FILE_MANAGER_WOPI_VALIDATION_FAILED"

	CodeOPCNotFound           = "OPC_NOT_FOUND"
	CodeOPCRelationDelete     = "OPC_RELATION_DELETE_ERROR"
	CodeOPCInvalidPayload     = "OPC_INVALID_PAYLOAD"
	CodeOPCInvalidJSON        = "OPC_INVALID_JSON"
	CodeOPCInvalidUUID        = "OPC_INVALID_UUID"
	CodeOPCIDRequired         = "OPC_ID_REQUIRED"
	CodeOPCIDMismatch         = "OPC_ID_MISMATCH"
	CodeOPCAttributesRequired = "OPC_ATTRIBUTES_REQUIRED"
	CodeOPCTitleRequired      = "OPC_TITLE_REQUIRED"
	CodeOPCCreateFailed       = "OPC_CREATE_FAILED"
	CodeOPCUpdateFailed       = "OPC_UPDATE_FAILED"
	CodeOPCDeleteFailed       = "OPC_DELETE_FAILED"
	CodeOPCListFailed         = "OPC_LIST_FAILED"

	CodeInsurancePatientDataNotFound                 = "INSURANCE_PATIENT_DATA_NOT_FOUND"
	CodeInsurancePatientDataRelationDelete           = "INSURANCE_PATIENT_DATA_RELATION_DELETE_ERROR"
	CodeInsurancePatientDataInvalidPayload           = "INSURANCE_PATIENT_DATA_INVALID_PAYLOAD"
	CodeInsurancePatientDataInvalidJSON              = "INSURANCE_PATIENT_DATA_INVALID_JSON"
	CodeInsurancePatientDataInvalidUUID              = "INSURANCE_PATIENT_DATA_INVALID_UUID"
	CodeInsurancePatientDataIDRequired               = "INSURANCE_PATIENT_DATA_ID_REQUIRED"
	CodeInsurancePatientDataIDMismatch               = "INSURANCE_PATIENT_DATA_ID_MISMATCH"
	CodeInsurancePatientDataAttributesRequired       = "INSURANCE_PATIENT_DATA_ATTRIBUTES_REQUIRED"
	CodeInsurancePatientDataHealthInsuranceIDInvalid = "INSURANCE_PATIENT_DATA_HEALTH_INSURANCE_ID_INVALID"
	CodeInsurancePatientDataFederalStateIDInvalid    = "INSURANCE_PATIENT_DATA_FEDERAL_STATE_ID_INVALID"
	CodeInsurancePatientDataCreateFailed             = "INSURANCE_PATIENT_DATA_CREATE_FAILED"
	CodeInsurancePatientDataUpdateFailed             = "INSURANCE_PATIENT_DATA_UPDATE_FAILED"
	CodeInsurancePatientDataDeleteFailed             = "INSURANCE_PATIENT_DATA_DELETE_FAILED"
	CodeInsurancePatientDataListFailed               = "INSURANCE_PATIENT_DATA_LIST_FAILED"

	CodePatientDataNotFound                      = "PATIENT_DATA_NOT_FOUND"
	CodePatientDataRelationDelete                = "PATIENT_DATA_RELATION_DELETE_ERROR"
	CodePatientDataInvalidPayload                = "PATIENT_DATA_INVALID_PAYLOAD"
	CodePatientDataInvalidJSON                   = "PATIENT_DATA_INVALID_JSON"
	CodePatientDataInvalidUUID                   = "PATIENT_DATA_INVALID_UUID"
	CodePatientDataIDRequired                    = "PATIENT_DATA_ID_REQUIRED"
	CodePatientDataIDMismatch                    = "PATIENT_DATA_ID_MISMATCH"
	CodePatientDataAttributesRequired            = "PATIENT_DATA_ATTRIBUTES_REQUIRED"
	CodePatientDataFamilyNameRequired            = "PATIENT_DATA_FAMILY_NAME_REQUIRED"
	CodePatientDataFirstNameRequired             = "PATIENT_DATA_FIRST_NAME_REQUIRED"
	CodePatientDataBirthDateInvalid              = "PATIENT_DATA_BIRTH_DATE_INVALID"
	CodePatientDataGenderInvalid                 = "PATIENT_DATA_GENDER_INVALID"
	CodePatientDataOPCIDInvalid                  = "PATIENT_DATA_OPC_ID_INVALID"
	CodePatientDataInsurancePatientDataIDInvalid = "PATIENT_DATA_INSURANCE_PATIENT_DATA_ID_INVALID"
	CodePatientDataCreateFailed                  = "PATIENT_DATA_CREATE_FAILED"
	CodePatientDataUpdateFailed                  = "PATIENT_DATA_UPDATE_FAILED"
	CodePatientDataDeleteFailed                  = "PATIENT_DATA_DELETE_FAILED"
	CodePatientDataListFailed                    = "PATIENT_DATA_LIST_FAILED"

	CodeRoleNotFound                 = "ROLE_NOT_FOUND"
	CodeRolePermissionNotFound       = "ROLE_PERMISSION_NOT_FOUND"
	CodeRoleRelationDelete           = "ROLE_RELATION_DELETE_ERROR"
	CodeRoleInvalidPayload           = "ROLE_INVALID_PAYLOAD"
	CodeRoleInvalidJSON              = "ROLE_INVALID_JSON"
	CodeRoleInvalidUUID              = "ROLE_INVALID_UUID"
	CodeRoleInvalidPermissionUUID    = "ROLE_INVALID_PERMISSION_UUID"
	CodeRoleIDRequired               = "ROLE_ID_REQUIRED"
	CodeRoleIDMismatch               = "ROLE_ID_MISMATCH"
	CodeRoleAttributesRequired       = "ROLE_ATTRIBUTES_REQUIRED"
	CodeRoleNameRequired             = "ROLE_NAME_REQUIRED"
	CodeRolePermissionIDRequired     = "ROLE_PERMISSION_ID_REQUIRED"
	CodeRolePermissionIDsEmpty       = "ROLE_PERMISSION_IDS_EMPTY"
	CodeRoleCreateFailed             = "ROLE_CREATE_FAILED"
	CodeRoleUpdateFailed             = "ROLE_UPDATE_FAILED"
	CodeRoleDeleteFailed             = "ROLE_DELETE_FAILED"
	CodeRoleAssignFailed             = "ROLE_ASSIGN_FAILED"
	CodeRoleRemoveFailed             = "ROLE_REMOVE_FAILED"
	CodeRoleListFailed               = "ROLE_LIST_FAILED"
	CodeRolePermissionListFailed     = "ROLE_PERMISSION_LIST_FAILED"
	CodeRolePermissionUpdateFailed   = "ROLE_PERMISSION_UPDATE_FAILED"
	CodeRolePermissionRequiresPINReq = "ROLE_PERMISSION_REQUIRES_PIN_REQUIRED"

	CodeMissionNotFound           = "MISSION_NOT_FOUND"
	CodeMissionInvalidPayload     = "MISSION_INVALID_PAYLOAD"
	CodeMissionInvalidJSON        = "MISSION_INVALID_JSON"
	CodeMissionInvalidFlightUUID  = "MISSION_INVALID_FLIGHT_UUID"
	CodeMissionInvalidMissionUUID = "MISSION_INVALID_MISSION_UUID"
	CodeMissionFlightIDRequired   = "MISSION_FLIGHT_ID_REQUIRED"
	CodeMissionMissionIDRequired  = "MISSION_MISSION_ID_REQUIRED"
	CodeMissionTypeInvalid        = "MISSION_TYPE_INVALID"
	CodeMissionSubtypeRequired    = "MISSION_SUBTYPE_REQUIRED"
	CodeMissionSubtypeInvalid     = "MISSION_SUBTYPE_INVALID"
	CodeMissionSubtypeForbidden   = "MISSION_SUBTYPE_FORBIDDEN"
	CodeMissionDuplicateFlight    = "MISSION_DUPLICATE_FLIGHT"
	CodeMissionCreateFailed       = "MISSION_CREATE_FAILED"
	CodeMissionUpdateFailed       = "MISSION_UPDATE_FAILED"
	CodeMissionDeleteFailed       = "MISSION_DELETE_FAILED"
	CodeMissionGetFailed          = "MISSION_GET_FAILED"
	CodeMissionListFailed         = "MISSION_LIST_FAILED"
	CodeMissionAfterFlightLocked  = "MISSION_AFTER_FLIGHT_LOCKED"

	CodeMissionFileInvalidJSON        = "MISSION_FILE_INVALID_JSON"
	CodeMissionFileValidation         = "MISSION_FILE_VALIDATION"
	CodeMissionFileInvalidMissionUUID = "MISSION_FILE_INVALID_MISSION_UUID"
	CodeMissionFileMissionNotFound    = "MISSION_FILE_MISSION_NOT_FOUND"
	CodeMissionFileServiceUnavailable = "MISSION_FILE_SERVICE_UNAVAILABLE"
	CodeMissionFileActionFailed       = "MISSION_FILE_ACTION_FAILED"

	CodeFlightDataNotFound                     = "FLIGHT_DATA_NOT_FOUND"
	CodeFlightDataInvalidPayload               = "FLIGHT_DATA_INVALID_PAYLOAD"
	CodeFlightDataInvalidJSON                  = "FLIGHT_DATA_INVALID_JSON"
	CodeFlightDataInvalidPathUUID              = "FLIGHT_DATA_INVALID_PATH_UUID"
	CodeFlightDataMissionIDRequired            = "FLIGHT_DATA_MISSION_ID_REQUIRED"
	CodeFlightDataCoPilotIDRequired            = "FLIGHT_DATA_CO_PILOT_ID_REQUIRED"
	CodeFlightDataPilotIDRequired              = CodeFlightDataCoPilotIDRequired
	CodeFlightDataMissionReference             = "FLIGHT_DATA_MISSION_REFERENCE"
	CodeFlightDataPilotReference               = "FLIGHT_DATA_PILOT_REFERENCE"
	CodeFlightDataInvalidUUID                  = "FLIGHT_DATA_INVALID_UUID"
	CodeFlightDataInvalidRFC3339               = "FLIGHT_DATA_INVALID_RFC3339"
	CodeFlightDataOriginLocationReference      = "FLIGHT_DATA_ORIGIN_LOCATION_REFERENCE"
	CodeFlightDataDestinationLocationReference = "FLIGHT_DATA_DESTINATION_LOCATION_REFERENCE"
	CodeFlightDataFacilityReference            = "FLIGHT_DATA_FACILITY_REFERENCE"
	CodeFlightDataRequired                     = "FLIGHT_DATA_REQUIRED"
	CodeFlightDataCreateFailed                 = "FLIGHT_DATA_CREATE_FAILED"
	CodeFlightDataGetFailed                    = "FLIGHT_DATA_GET_FAILED"
	CodeFlightDataAfterFlightIncomplete        = "FLIGHT_DATA_AFTER_FLIGHT_INCOMPLETE"
	CodeFlightDataAfterFlightLocked            = "FLIGHT_DATA_AFTER_FLIGHT_LOCKED"
	CodeAirRescuerChecklistNotFound            = "AIR_RESCUER_CHECKLIST_NOT_FOUND"
	CodeAirRescuerChecklistItemNotFound        = "AIR_RESCUER_CHECKLIST_ITEM_NOT_FOUND"
	CodeAirRescuerChecklistInvalidPayload      = "AIR_RESCUER_CHECKLIST_INVALID_PAYLOAD"
	CodeAirRescuerChecklistInvalidJSON         = "AIR_RESCUER_CHECKLIST_INVALID_JSON"
	CodeAirRescuerChecklistInvalidUUID         = "AIR_RESCUER_CHECKLIST_INVALID_UUID"
	CodeAirRescuerChecklistIDMismatch          = "AIR_RESCUER_CHECKLIST_ID_MISMATCH"
	CodeAirRescuerChecklistScopeInvalid        = "AIR_RESCUER_CHECKLIST_SCOPE_INVALID"
	CodeAirRescuerChecklistScopeRequired       = "AIR_RESCUER_CHECKLIST_SCOPE_REQUIRED"
	CodeAirRescuerChecklistTitleRequired       = "AIR_RESCUER_CHECKLIST_TITLE_REQUIRED"
	CodeAirRescuerChecklistNameRequired        = "AIR_RESCUER_CHECKLIST_NAME_REQUIRED"
	CodeAirRescuerChecklistBaseNotFound        = "AIR_RESCUER_CHECKLIST_BASE_NOT_FOUND"
	CodeAirRescuerChecklistCreateFailed        = "AIR_RESCUER_CHECKLIST_CREATE_FAILED"
	CodeAirRescuerChecklistUpdateFailed        = "AIR_RESCUER_CHECKLIST_UPDATE_FAILED"
	CodeAirRescuerChecklistDeleteFailed        = "AIR_RESCUER_CHECKLIST_DELETE_FAILED"
	CodeAirRescuerChecklistListFailed          = "AIR_RESCUER_CHECKLIST_LIST_FAILED"
	CodeAirRescuerChecklistReorderFailed       = "AIR_RESCUER_CHECKLIST_REORDER_FAILED"
	CodeAirRescuerChecklistValidationFailed    = "AIR_RESCUER_CHECKLIST_VALIDATION_FAILED"

	CodeTakeoverNotFound           = "TAKEOVER_NOT_FOUND"
	CodeTakeoverInvalidPayload     = "TAKEOVER_INVALID_PAYLOAD"
	CodeTakeoverInvalidJSON        = "TAKEOVER_INVALID_JSON"
	CodeTakeoverInvalidUUID        = "TAKEOVER_INVALID_UUID"
	CodeTakeoverIDRequired         = "TAKEOVER_ID_REQUIRED"
	CodeTakeoverIDMismatch         = "TAKEOVER_ID_MISMATCH"
	CodeTakeoverFileSectionInvalid = "TAKEOVER_FILE_SECTION_INVALID"
	CodeTakeoverCreateFailed       = "TAKEOVER_CREATE_FAILED"
	CodeTakeoverUpdateFailed       = "TAKEOVER_UPDATE_FAILED"
	CodeTakeoverDeleteFailed       = "TAKEOVER_DELETE_FAILED"
	CodeTakeoverGetFailed          = "TAKEOVER_GET_FAILED"
	CodeTakeoverListFailed         = "TAKEOVER_LIST_FAILED"
	CodeTakeoverHelicopterInUse    = "TAKEOVER_HELICOPTER_IN_USE"
	CodeTakeoverHelicopterAOG      = "TAKEOVER_HELICOPTER_AOG"
	CodeTakeoverHelicopterMCF      = "TAKEOVER_HELICOPTER_MCF"

	CodeHEMSOperationNotFound                 = "HEMS_OPERATION_NOT_FOUND"
	CodeHEMSOperationInvalidPayload           = "HEMS_OPERATION_INVALID_PAYLOAD"
	CodeHEMSOperationInvalidJSON              = "HEMS_OPERATION_INVALID_JSON"
	CodeHEMSOperationInvalidUUID              = "HEMS_OPERATION_INVALID_UUID"
	CodeHEMSOperationAttributesRequired       = "HEMS_OPERATION_ATTRIBUTES_REQUIRED"
	CodeHEMSOperationDateInvalidRFC3339       = "HEMS_OPERATION_DATE_INVALID_RFC3339"
	CodeHEMSOperationRelationReferenceInvalid = "HEMS_OPERATION_RELATION_REFERENCE_INVALID"
	CodeHEMSOperationCreateFailed             = "HEMS_OPERATION_CREATE_FAILED"
	CodeHEMSOperationUpdateFailed             = "HEMS_OPERATION_UPDATE_FAILED"
	CodeHEMSOperationDeleteFailed             = "HEMS_OPERATION_DELETE_FAILED"
	CodeHEMSOperationListFailed               = "HEMS_OPERATION_LIST_FAILED"
	CodeForcesPresentNotFound                 = "FORCES_PRESENT_NOT_FOUND"
	CodeForcesPresentRelationDelete           = "FORCES_PRESENT_RELATION_DELETE_ERROR"
	CodeForcesPresentInvalidPayload           = "FORCES_PRESENT_INVALID_PAYLOAD"
	CodeForcesPresentInvalidJSON              = "FORCES_PRESENT_INVALID_JSON"
	CodeForcesPresentInvalidUUID              = "FORCES_PRESENT_INVALID_UUID"
	CodeForcesPresentIDRequired               = "FORCES_PRESENT_ID_REQUIRED"
	CodeForcesPresentIDMismatch               = "FORCES_PRESENT_ID_MISMATCH"
	CodeForcesPresentAttributesRequired       = "FORCES_PRESENT_ATTRIBUTES_REQUIRED"
	CodeForcesPresentNameRequired             = "FORCES_PRESENT_NAME_REQUIRED"
	CodeForcesPresentCreateFailed             = "FORCES_PRESENT_CREATE_FAILED"
	CodeForcesPresentUpdateFailed             = "FORCES_PRESENT_UPDATE_FAILED"
	CodeForcesPresentDeleteFailed             = "FORCES_PRESENT_DELETE_FAILED"
	CodeForcesPresentListFailed               = "FORCES_PRESENT_LIST_FAILED"

	CodeContactNotFound                          = "CONTACT_NOT_FOUND"
	CodeContactInvalidPayload                    = "CONTACT_INVALID_PAYLOAD"
	CodeContactInvalidJSON                       = "CONTACT_INVALID_JSON"
	CodeContactInvalidUserID                     = "CONTACT_INVALID_USER_ID"
	CodeContactValidationFailed                  = "CONTACT_VALIDATION_FAILED"
	CodeContactCreateFailed                      = "CONTACT_CREATE_FAILED"
	CodeContactGetFailed                         = "CONTACT_GET_FAILED"
	CodeContactUpdateFailed                      = "CONTACT_UPDATE_FAILED"
	CodeContactUsernameConflict                  = "CONTACT_USERNAME_CONFLICT"
	CodeContactDeleteFailed                      = "CONTACT_DELETE_FAILED"
	CodeContactUpdateStatusFailed                = "CONTACT_UPDATE_STATUS_FAILED"
	CodeContactUpdateRoleFailed                  = "CONTACT_UPDATE_ROLE_FAILED"
	CodeContactUpdatePilotCategoryFailed         = "CONTACT_UPDATE_PILOT_CATEGORY_FAILED"
	CodeContactUpdateLicenseFailed               = "CONTACT_UPDATE_LICENSE_FAILED"
	CodeContactUpdateChiefFlagsFailed            = "CONTACT_UPDATE_CHIEF_FLAGS_FAILED"
	CodeContactUpdateResponsibleComplaintsFailed = "CONTACT_UPDATE_RESPONSIBLE_COMPLAINTS_FAILED"
	CodeContactBulkUpdateFailed                  = "CONTACT_BULK_UPDATE_FAILED"
	CodeContactListFailed                        = "CONTACT_LIST_FAILED"

	CodeFleetStatusNotFound           = "FLEET_STATUS_NOT_FOUND"
	CodeFleetStatusInvalidPayload     = "FLEET_STATUS_INVALID_PAYLOAD"
	CodeFleetStatusInvalidJSON        = "FLEET_STATUS_INVALID_JSON"
	CodeFleetStatusInvalidID          = "FLEET_STATUS_INVALID_ID"
	CodeFleetStatusIDRequired         = "FLEET_STATUS_ID_REQUIRED"
	CodeFleetStatusIDMismatch         = "FLEET_STATUS_ID_MISMATCH"
	CodeFleetStatusHelicopterRequired = "FLEET_STATUS_HELICOPTER_REQUIRED"
	CodeFleetStatusHelicopterInvalid  = "FLEET_STATUS_HELICOPTER_INVALID"
	CodeFleetStatusDuplicate          = "FLEET_STATUS_DUPLICATE"
	CodeFleetStatusRelationDelete     = "FLEET_STATUS_RELATION_DELETE_ERROR"
	CodeFleetStatusCreateFailed       = "FLEET_STATUS_CREATE_FAILED"
	CodeFleetStatusUpdateFailed       = "FLEET_STATUS_UPDATE_FAILED"
	CodeFleetStatusDeleteFailed       = "FLEET_STATUS_DELETE_FAILED"
	CodeFleetStatusListFailed         = "FLEET_STATUS_LIST_FAILED"
	CodeFleetStatusMarkServicedFailed = "FLEET_STATUS_MARK_SERVICED_FAILED"

	CodeFleetStatusFileInvalidJSON         = "FLEET_STATUS_FILE_INVALID_JSON"
	CodeFleetStatusFileInvalidPayload      = "FLEET_STATUS_FILE_INVALID_PAYLOAD"
	CodeFleetStatusFileUploadIntentInvalid = "FLEET_STATUS_FILE_UPLOAD_INTENT_INVALID"
	CodeFleetStatusFileStorageUnavailable  = "FLEET_STATUS_FILE_STORAGE_UNAVAILABLE"
	CodeFleetStatusFileFailed              = "FLEET_STATUS_FILE_FAILED"

	CodeComplaintNotFound            = "COMPLAINT_NOT_FOUND"
	CodeComplaintInvalidPayload      = "COMPLAINT_INVALID_PAYLOAD"
	CodeComplaintInvalidJSON         = "COMPLAINT_INVALID_JSON"
	CodeComplaintInvalidUUID         = "COMPLAINT_INVALID_UUID"
	CodeComplaintIDRequired          = "COMPLAINT_ID_REQUIRED"
	CodeComplaintIDMismatch          = "COMPLAINT_ID_MISMATCH"
	CodeComplaintCreateFailed        = "COMPLAINT_CREATE_FAILED"
	CodeComplaintUpdateFailed        = "COMPLAINT_UPDATE_FAILED"
	CodeComplaintDeleteFailed        = "COMPLAINT_DELETE_FAILED"
	CodeComplaintListFailed          = "COMPLAINT_LIST_FAILED"
	CodeComplaintGroupedListFailed   = "COMPLAINT_GROUPED_LIST_FAILED"
	CodeComplaintRelationDelete      = "COMPLAINT_RELATION_DELETE_ERROR"
	CodeComplaintInvalidHelicopterID = "COMPLAINT_INVALID_HELICOPTER_ID"
	CodeComplaintMELRequired         = "COMPLAINT_MEL_REQUIRED"
	CodeComplaintActionSignedLocked  = "COMPLAINT_ACTION_SIGNED_LOCKED"

	CodeEASAReleaseNotFound          = "EASA_RELEASE_NOT_FOUND"
	CodeEASAReleaseInvalidJSON       = "EASA_RELEASE_INVALID_JSON"
	CodeEASAReleaseInvalidUUID       = "EASA_RELEASE_INVALID_UUID"
	CodeEASAReleaseInvalidPayload    = "EASA_RELEASE_INVALID_PAYLOAD"
	CodeEASAReleaseCreateFailed      = "EASA_RELEASE_CREATE_FAILED"
	CodeEASAReleaseUpdateFailed      = "EASA_RELEASE_UPDATE_FAILED"
	CodeEASAReleaseDeleteFailed      = "EASA_RELEASE_DELETE_FAILED"
	CodeEASAReleaseListFailed        = "EASA_RELEASE_LIST_FAILED"
	CodeEASAReleaseSignFailed        = "EASA_RELEASE_SIGN_FAILED"
	CodeEASAReleaseAlreadySigned     = "EASA_RELEASE_ALREADY_SIGNED"
	CodeEASAReleaseIncompleteForSign = "EASA_RELEASE_INCOMPLETE_FOR_SIGN"
	CodeEASAReleaseSignoffRequired   = "EASA_RELEASE_SIGNOFF_REQUIRED"

	CodeActionSignoffNotFound          = "ACTION_SIGNOFF_NOT_FOUND"
	CodeActionSignoffInvalidUUID       = "ACTION_SIGNOFF_INVALID_UUID"
	CodeActionSignoffInvalidJSON       = "ACTION_SIGNOFF_INVALID_JSON"
	CodeActionSignoffSignFailed        = "ACTION_SIGNOFF_SIGN_FAILED"
	CodeActionSignoffUnsignFailed      = "ACTION_SIGNOFF_UNSIGN_FAILED"
	CodeActionSignoffComplaintNotFound = "ACTION_SIGNOFF_COMPLAINT_NOT_FOUND"
	CodeActionSignoffActionRequired    = "ACTION_SIGNOFF_ACTION_REQUIRED"

	CodeMCFNotFound       = "MCF_NOT_FOUND"
	CodeMCFInvalidJSON    = "MCF_INVALID_JSON"
	CodeMCFInvalidUUID    = "MCF_INVALID_UUID"
	CodeMCFInvalidPayload = "MCF_INVALID_PAYLOAD"
	CodeMCFCreateFailed   = "MCF_CREATE_FAILED"
	CodeMCFCompleteFailed = "MCF_COMPLETE_FAILED"
	CodeMCFNoOpen            = "MCF_NO_OPEN"
	CodeMCFListFailed        = "MCF_LIST_FAILED"
	CodeMCFHelicopterHasOpen = "MCF_HELICOPTER_HAS_OPEN"
)

const (
	CaseGeneralInvalidRequest     = "01"
	CaseGeneralInvalidDataType    = "06"
	CaseGeneralDataNotFound       = "02"
	CaseGeneralValidationError    = "03"
	CaseGeneralBusinessRuleFailed = "04"
	CaseGeneralInternalError      = "05"
)

const (
	CaseAuthSessionExpired            = "01"
	CaseAuthTokenInvalid              = "02"
	CaseAuthUnauthorized              = "03"
	CaseAuthForbidden                 = "04"
	CaseAuthInvalidJSON               = "05"
	CaseAuthRegistrationDisabled      = "06"
	CaseAuthRoleNotFound              = "07"
	CaseAuthRegistrationFailed        = "08"
	CaseAuthInviteFailed              = "09"
	CaseAuthSetPasswordFailed         = "10"
	CaseAuthSetPasswordTokenInvalid   = "11"
	CaseAuthUsernameAlreadyRegistered = "12"
	CaseAuthResetPasswordInvalidLink  = "13"
	CaseAuthResetPasswordFailed       = "14"
)

const (
	CasePINIncorrect            = "01"
	CasePINBlocked              = "02"
	CasePINAttemptLimitReached  = "03"
	CasePINNotSet               = "04"
	CasePINValidationFailed     = "05"
	CasePINVerificationRequired = "06"
	CasePINNotBlocked           = "07"
)

const (
	CaseHelicopterDuplicate               = "01"
	CaseHelicopterNotFound                = "02"
	CaseHelicopterRelationDelete          = "03"
	CaseHelicopterInvalidPayload          = "04"
	CaseHelicopterInvalidType             = "17"
	CaseHelicopterInvalidJSON             = "05"
	CaseHelicopterInvalidID               = "06"
	CaseHelicopterIDRequired              = "07"
	CaseHelicopterIDMismatch              = "08"
	CaseHelicopterAttributesRequired      = "09"
	CaseHelicopterCreateFailed            = "10"
	CaseHelicopterUpdateFailed            = "11"
	CaseHelicopterDeleteFailed            = "12"
	CaseHelicopterGenerateFailed          = "13"
	CaseHelicopterListFailed              = "14"
	CaseHelicopterPinVerificationRequired = "15"
	CaseHelicopterUnauthorized            = "16"
	CaseHelicopterFileNotFound            = "18"
	CaseHelicopterFileInvalidPayload      = "19"
	CaseHelicopterFileInvalidJSON         = "20"
	CaseHelicopterFileInvalidUUID         = "21"
	CaseHelicopterFileSectionInvalid      = "22"
	CaseHelicopterFileFileNameRequired    = "23"
	CaseHelicopterFileCreateFailed        = "24"
	CaseHelicopterFileUpdateFailed        = "25"
	CaseHelicopterFileDeleteFailed        = "26"
	CaseHelicopterFileGetFailed           = "27"
	CaseHelicopterFileListFailed          = "28"
	CaseHelicopterUsageNotFound           = "29"
	CaseHelicopterUsageDuplicate          = "30"
	CaseHelicopterUsageRelationDelete     = "31"
	CaseHelicopterUsageInvalidPayload     = "32"
	CaseHelicopterUsageInvalidJSON        = "33"
	CaseHelicopterUsageInvalidUUID        = "34"
	CaseHelicopterUsageIDRequired         = "35"
	CaseHelicopterUsageIDMismatch         = "36"
	CaseHelicopterUsageAttributesRequired = "37"
	CaseHelicopterUsageCreateFailed       = "38"
	CaseHelicopterUsageGetFailed          = "39"
	CaseHelicopterUsageUpdateFailed       = "40"
	CaseHelicopterUsageDeleteFailed       = "41"
	CaseHelicopterUsageListFailed         = "42"
	CaseHelicopterUsageSyncFailed         = "43"

	CaseFMReportNotFound       = "01"
	CaseFMReportInvalidJSON    = "02"
	CaseFMReportInvalidUUID    = "03"
	CaseFMReportInvalidPayload = "04"
	CaseFMReportCompleteFailed = "05"
	CaseFMReportLocked         = "06"
)

const (
	CaseUserNotFound           = "01"
	CaseUserInvalidPayload     = "02"
	CaseUserInvalidJSON        = "03"
	CaseUserInvalidUUID        = "04"
	CaseUserValidationFailed   = "05"
	CaseUserCreateFailed       = "06"
	CaseUserUpdateFailed       = "07"
	CaseUserDeleteFailed       = "08"
	CaseUserListFailed         = "09"
	CaseUserTimezoneInvalid    = "10"
	CaseUserRoleIDsInvalid     = "11"
	CaseUserRoleIDsRequired    = "12"
	CaseUserPrimaryRoleInvalid = "13"
)

const (
	CaseMasterDataNotFound         = "01"
	CaseMasterDataInvalidPayload   = "02"
	CaseMasterDataInvalidJSON      = "03"
	CaseMasterDataValidationFailed = "04"
	CaseMasterDataCreateFailed     = "05"
	CaseMasterDataUpdateFailed     = "06"
	CaseMasterDataDeleteFailed     = "07"
	CaseMasterDataListFailed       = "08"
)

const (
	CaseDutyRosterNotFound               = "01"
	CaseDutyRosterInvalidPayload         = "02"
	CaseDutyRosterInvalidJSON            = "03"
	CaseDutyRosterInvalidUUID            = "04"
	CaseDutyRosterValidationFailed       = "05"
	CaseDutyRosterConflict               = "06"
	CaseDutyRosterCreateFailed           = "07"
	CaseDutyRosterUpdateFailed           = "08"
	CaseDutyRosterDeleteFailed           = "09"
	CaseDutyRosterListFailed             = "10"
	CaseDutyRosterUnauthorized           = "11"
	CaseDutyRosterBaseTypeInvalid        = "12"
	CaseDutyRosterRelationDeleteConflict = "13"
)

const (
	CaseDULNotFound         = "01"
	CaseDULInvalidPayload   = "02"
	CaseDULInvalidJSON      = "03"
	CaseDULInvalidUUID      = "04"
	CaseDULValidationFailed = "05"
	CaseDULCreateFailed     = "06"
	CaseDULUpdateFailed     = "07"
	CaseDULDeleteFailed     = "08"
	CaseDULListFailed       = "09"
	CaseDULDateInvalid      = "10"
)

const (
	CaseFlightNotFound         = "01"
	CaseFlightInvalidPayload   = "02"
	CaseFlightInvalidJSON      = "03"
	CaseFlightInvalidUUID      = "04"
	CaseFlightValidationFailed = "05"
	CaseFlightCreateFailed     = "06"
	CaseFlightGetFailed        = "07"
	CaseFlightListFailed       = "08"
	CaseFlightUnauthorized     = "09"
	CaseFlightDateInvalid      = "10"
)

const (
	CaseNoIcaoCodeNotFound           = "01"
	CaseNoIcaoCodeRelationDelete     = "02"
	CaseNoIcaoCodeInvalidPayload     = "03"
	CaseNoIcaoCodeInvalidJSON        = "04"
	CaseNoIcaoCodeInvalidUUID        = "05"
	CaseNoIcaoCodeIDRequired         = "06"
	CaseNoIcaoCodeIDMismatch         = "07"
	CaseNoIcaoCodeAttributesRequired = "08"
	CaseNoIcaoCodeNameRequired       = "09"
	CaseNoIcaoCodeCreateFailed       = "10"
	CaseNoIcaoCodeUpdateFailed       = "11"
	CaseNoIcaoCodeDeleteFailed       = "12"
	CaseNoIcaoCodeListFailed         = "13"
	CaseHospitalNotFound             = CaseNoIcaoCodeNotFound
	CaseHospitalRelationDelete       = CaseNoIcaoCodeRelationDelete
	CaseHospitalInvalidPayload       = CaseNoIcaoCodeInvalidPayload
	CaseHospitalInvalidJSON          = CaseNoIcaoCodeInvalidJSON
	CaseHospitalInvalidUUID          = CaseNoIcaoCodeInvalidUUID
	CaseHospitalIDRequired           = CaseNoIcaoCodeIDRequired
	CaseHospitalIDMismatch           = CaseNoIcaoCodeIDMismatch
	CaseHospitalAttributesRequired   = CaseNoIcaoCodeAttributesRequired
	CaseHospitalNameRequired         = CaseNoIcaoCodeNameRequired
	CaseHospitalCreateFailed         = CaseNoIcaoCodeCreateFailed
	CaseHospitalUpdateFailed         = CaseNoIcaoCodeUpdateFailed
	CaseHospitalDeleteFailed         = CaseNoIcaoCodeDeleteFailed
	CaseHospitalListFailed           = CaseNoIcaoCodeListFailed
)

const (
	CaseBaseNotFound                  = "01"
	CaseBaseRelationDelete            = "15"
	CaseBaseInvalidPayload            = "03"
	CaseBaseInvalidJSON               = "04"
	CaseBaseInvalidUUID               = "05"
	CaseBaseInvalidCategory           = "06"
	CaseBaseAttributesRequired        = "07"
	CaseBaseNameRequired              = "08"
	CaseBaseCreateFailed              = "09"
	CaseBaseUpdateFailed              = "10"
	CaseBaseDeleteFailed              = "11"
	CaseBaseListFailed                = "12"
	CaseBaseInvalidContactIDs         = "13"
	CaseBaseInvalidTime               = "14"
	CaseBaseDefaultShiftStartRequired = "16"
	CaseBaseDefaultShiftEndRequired   = "17"
)

const (
	CaseFacilityNotFound           = "01"
	CaseFacilityRelationDelete     = "02"
	CaseFacilityInvalidPayload     = "03"
	CaseFacilityInvalidJSON        = "04"
	CaseFacilityInvalidUUID        = "05"
	CaseFacilityAttributesRequired = "06"
	CaseFacilityCategoryRequired   = "07"
	CaseFacilityNameRequired       = "08"
	CaseFacilityTypeRequired       = "09"
	CaseFacilityCreateFailed       = "10"
	CaseFacilityUpdateFailed       = "11"
	CaseFacilityDeleteFailed       = "12"
	CaseFacilityListFailed         = "13"
)

const (
	CaseFederalStateNotFound           = "01"
	CaseFederalStateRelationDelete     = "02"
	CaseFederalStateInvalidPayload     = "03"
	CaseFederalStateInvalidJSON        = "04"
	CaseFederalStateInvalidID          = "05"
	CaseFederalStateLandIDInvalid      = "06"
	CaseFederalStateIDRequired         = "07"
	CaseFederalStateIDMismatch         = "08"
	CaseFederalStateAttributesRequired = "09"
	CaseFederalStateNameRequired       = "10"
	CaseFederalStateCreateFailed       = "11"
	CaseFederalStateUpdateFailed       = "12"
	CaseFederalStateDeleteFailed       = "13"
	CaseFederalStateListFailed         = "14"
)

const (
	CaseNationalityNotFound           = "01"
	CaseNationalityRelationDelete     = "02"
	CaseNationalityInvalidPayload     = "03"
	CaseNationalityInvalidJSON        = "04"
	CaseNationalityInvalidUUID        = "05"
	CaseNationalityIDRequired         = "06"
	CaseNationalityIDMismatch         = "07"
	CaseNationalityAttributesRequired = "08"
	CaseNationalityNameRequired       = "09"
	CaseNationalityCreateFailed       = "10"
	CaseNationalityUpdateFailed       = "11"
	CaseNationalityDeleteFailed       = "12"
	CaseNationalityListFailed         = "13"
)

const (
	CaseCountryNotFound           = "01"
	CaseCountryRelationDelete     = "02"
	CaseCountryInvalidPayload     = "03"
	CaseCountryInvalidJSON        = "04"
	CaseCountryInvalidID          = "05"
	CaseCountryIDRequired         = "06"
	CaseCountryIDMismatch         = "07"
	CaseCountryAttributesRequired = "08"
	CaseCountryNameRequired       = "09"
	CaseCountryISOCodeInvalid     = "10"
	CaseCountryISOCodeDuplicate   = "11"
	CaseCountryCreateFailed       = "12"
	CaseCountryUpdateFailed       = "13"
	CaseCountryDeleteFailed       = "14"
	CaseCountryListFailed         = "15"
	CaseLandNotFound              = CaseCountryNotFound
	CaseLandRelationDelete        = CaseCountryRelationDelete
	CaseLandInvalidPayload        = CaseCountryInvalidPayload
	CaseLandInvalidJSON           = CaseCountryInvalidJSON
	CaseLandInvalidID             = CaseCountryInvalidID
	CaseLandIDRequired            = CaseCountryIDRequired
	CaseLandIDMismatch            = CaseCountryIDMismatch
	CaseLandAttributesRequired    = CaseCountryAttributesRequired
	CaseLandNameRequired          = CaseCountryNameRequired
	CaseLandISOCodeInvalid        = CaseCountryISOCodeInvalid
	CaseLandISOCodeDuplicate      = CaseCountryISOCodeDuplicate
	CaseLandCreateFailed          = CaseCountryCreateFailed
	CaseLandUpdateFailed          = CaseCountryUpdateFailed
	CaseLandDeleteFailed          = CaseCountryDeleteFailed
	CaseLandListFailed            = CaseCountryListFailed
)

const (
	CaseICAONotFound            = "01"
	CaseICAORelationDelete      = "02"
	CaseICAOInvalidPayload      = "03"
	CaseICAOInvalidJSON         = "04"
	CaseICAOInvalidUUID         = "05"
	CaseICAOIDRequired          = "06"
	CaseICAOIDMismatch          = "07"
	CaseICAOAttributesRequired  = "08"
	CaseICAOCodeRequired        = "09"
	CaseICAOLandIDInvalid       = "10"
	CaseICAOFederalStateInvalid = "11"
	CaseICAOCreateFailed        = "12"
	CaseICAOUpdateFailed        = "13"
	CaseICAODeleteFailed        = "14"
	CaseICAOListFailed          = "15"
)

const (
	CaseVocationNotFound           = "01"
	CaseVocationRelationDelete     = "02"
	CaseVocationInvalidPayload     = "03"
	CaseVocationInvalidJSON        = "04"
	CaseVocationInvalidUUID        = "05"
	CaseVocationIDRequired         = "06"
	CaseVocationIDMismatch         = "07"
	CaseVocationAttributesRequired = "08"
	CaseVocationNameRequired       = "09"
	CaseVocationCreateFailed       = "10"
	CaseVocationUpdateFailed       = "11"
	CaseVocationDeleteFailed       = "12"
	CaseVocationListFailed         = "13"
)

const (
	CaseHealthInsuranceNotFound           = "01"
	CaseHealthInsuranceRelationDelete     = "02"
	CaseHealthInsuranceInvalidPayload     = "03"
	CaseHealthInsuranceInvalidJSON        = "04"
	CaseHealthInsuranceInvalidUUID        = "05"
	CaseHealthInsuranceIDRequired         = "06"
	CaseHealthInsuranceIDMismatch         = "07"
	CaseHealthInsuranceAttributesRequired = "08"
	CaseHealthInsuranceNameRequired       = "09"
	CaseHealthInsuranceLandIDInvalid      = "10"
	CaseHealthInsuranceCreateFailed       = "11"
	CaseHealthInsuranceUpdateFailed       = "12"
	CaseHealthInsuranceDeleteFailed       = "13"
	CaseHealthInsuranceListFailed         = "14"
)

const (
	CaseMedicineNotFound                = "01"
	CaseMedicineRelationDelete          = "02"
	CaseMedicineInvalidPayload          = "03"
	CaseMedicineInvalidJSON             = "04"
	CaseMedicineInvalidUUID             = "05"
	CaseMedicineIDRequired              = "06"
	CaseMedicineIDMismatch              = "07"
	CaseMedicineAttributesRequired      = "08"
	CaseMedicineNameRequired            = "09"
	CaseMedicineGroupIDInvalid          = "10"
	CaseMedicineMotorReactionIDInvalid  = "11"
	CaseMedicineMotorReactionIDsInvalid = "12"
	CaseMedicineCreateFailed            = "13"
	CaseMedicineUpdateFailed            = "14"
	CaseMedicineDeleteFailed            = "15"
	CaseMedicineListFailed              = "16"
)

const (
	CaseMasterSettingsNotFound            = "01"
	CaseMasterSettingsInvalidPayload      = "02"
	CaseMasterSettingsInvalidJSON         = "03"
	CaseMasterSettingsInvalidUUID         = "04"
	CaseMasterSettingsIDRequired          = "05"
	CaseMasterSettingsIDMismatch          = "06"
	CaseMasterSettingsAttributesRequired  = "07"
	CaseMasterSettingsCompanyNameRequired = "08"
	CaseMasterSettingsLogoFileInvalid     = "09"
	CaseMasterSettingsCoverFileInvalid    = "10"
	CaseMasterSettingsCreateFailed        = "11"
	CaseMasterSettingsUpdateFailed        = "12"
	CaseMasterSettingsDeleteFailed        = "13"
	CaseMasterSettingsGetFailed           = "14"
	CaseMasterSettingsMicrosoftUpsert     = "15"
)

const (
	CaseBrandingLogoFetchFailed        = "01"
	CaseBrandingCoverFetchFailed       = "02"
	CaseBrandingEmailLogoFetchFailed   = "03"
	CaseBrandingContentFetchFailed     = "04"
	CaseBrandingStorageUnavailable     = "05"
	CaseBrandingFileManagerUnavailable = "06"
)

const (
	CaseFileManagerStorageUnavailable           = "01"
	CaseFileManagerQueueUnavailable             = "02"
	CaseFileManagerUploadIntentUnavailable      = "03"
	CaseFileManagerAttachmentServiceUnavailable = "04"
	CaseFileManagerFolderNotFound               = "05"
	CaseFileManagerFileNotFound                 = "06"
	CaseFileManagerAttachmentNotFound           = "07"
	CaseFileManagerUploadIntentNotFound         = "08"
	CaseFileManagerStatusConflict               = "09"
	CaseFileManagerUploadIntentConflict         = "10"
	CaseFileManagerValidationFailed             = "11"
	CaseFileManagerActionFailed                 = "12"
	CaseFileManagerWOPIServiceUnavailable       = "13"
	CaseFileManagerWOPIInvalidFileID            = "14"
	CaseFileManagerWOPIInvalidToken             = "15"
	CaseFileManagerWOPIInvalidProof             = "16"
	CaseFileManagerWOPIPermissionDenied         = "17"
	CaseFileManagerWOPIFileNotFound             = "18"
	CaseFileManagerWOPILockConflict             = "19"
	CaseFileManagerWOPIStaleTimestamp           = "20"
	CaseFileManagerWOPIValidationFailed         = "21"
)

const (
	CaseOPCNotFound           = "01"
	CaseOPCRelationDelete     = "02"
	CaseOPCInvalidPayload     = "03"
	CaseOPCInvalidJSON        = "04"
	CaseOPCInvalidUUID        = "05"
	CaseOPCIDRequired         = "06"
	CaseOPCIDMismatch         = "07"
	CaseOPCAttributesRequired = "08"
	CaseOPCTitleRequired      = "09"
	CaseOPCCreateFailed       = "10"
	CaseOPCUpdateFailed       = "11"
	CaseOPCDeleteFailed       = "12"
	CaseOPCListFailed         = "13"
)

const (
	CaseInsurancePatientDataNotFound                 = "01"
	CaseInsurancePatientDataRelationDelete           = "02"
	CaseInsurancePatientDataInvalidPayload           = "03"
	CaseInsurancePatientDataInvalidJSON              = "04"
	CaseInsurancePatientDataInvalidUUID              = "05"
	CaseInsurancePatientDataIDRequired               = "06"
	CaseInsurancePatientDataIDMismatch               = "07"
	CaseInsurancePatientDataAttributesRequired       = "08"
	CaseInsurancePatientDataHealthInsuranceIDInvalid = "09"
	CaseInsurancePatientDataFederalStateIDInvalid    = "10"
	CaseInsurancePatientDataCreateFailed             = "11"
	CaseInsurancePatientDataUpdateFailed             = "12"
	CaseInsurancePatientDataDeleteFailed             = "13"
	CaseInsurancePatientDataListFailed               = "14"
)

const (
	CasePatientDataNotFound                      = "01"
	CasePatientDataRelationDelete                = "02"
	CasePatientDataInvalidPayload                = "03"
	CasePatientDataInvalidJSON                   = "04"
	CasePatientDataInvalidUUID                   = "05"
	CasePatientDataIDRequired                    = "06"
	CasePatientDataIDMismatch                    = "07"
	CasePatientDataAttributesRequired            = "08"
	CasePatientDataFamilyNameRequired            = "09"
	CasePatientDataFirstNameRequired             = "10"
	CasePatientDataBirthDateInvalid              = "11"
	CasePatientDataGenderInvalid                 = "12"
	CasePatientDataOPCIDInvalid                  = "13"
	CasePatientDataInsurancePatientDataIDInvalid = "14"
	CasePatientDataCreateFailed                  = "15"
	CasePatientDataUpdateFailed                  = "16"
	CasePatientDataDeleteFailed                  = "17"
	CasePatientDataListFailed                    = "18"
)

const (
	CaseRoleNotFound                 = "01"
	CaseRolePermissionNotFound       = "02"
	CaseRoleRelationDelete           = "03"
	CaseRoleInvalidPayload           = "04"
	CaseRoleInvalidJSON              = "05"
	CaseRoleInvalidUUID              = "06"
	CaseRoleInvalidPermissionUUID    = "07"
	CaseRoleIDRequired               = "08"
	CaseRoleIDMismatch               = "09"
	CaseRoleAttributesRequired       = "10"
	CaseRoleNameRequired             = "11"
	CaseRolePermissionIDRequired     = "12"
	CaseRolePermissionIDsEmpty       = "13"
	CaseRoleCreateFailed             = "14"
	CaseRoleUpdateFailed             = "15"
	CaseRoleDeleteFailed             = "16"
	CaseRoleAssignFailed             = "17"
	CaseRoleRemoveFailed             = "18"
	CaseRoleListFailed               = "19"
	CaseRolePermissionListFailed     = "20"
	CaseRolePermissionUpdateFailed   = "21"
	CaseRolePermissionRequiresPINReq = "22"
)

const (
	CaseFlightDataNotFound                     = "01"
	CaseFlightDataInvalidPayload               = "02"
	CaseFlightDataInvalidJSON                  = "03"
	CaseFlightDataInvalidPathUUID              = "04"
	CaseFlightDataMissionIDRequired            = "05"
	CaseFlightDataCoPilotIDRequired            = "06"
	CaseFlightDataPilotIDRequired              = CaseFlightDataCoPilotIDRequired
	CaseFlightDataMissionReference             = "07"
	CaseFlightDataPilotReference               = "08"
	CaseFlightDataInvalidUUID                  = "09"
	CaseFlightDataInvalidRFC3339               = "10"
	CaseFlightDataOriginLocationReference      = "11"
	CaseFlightDataDestinationLocationReference = "12"
	CaseFlightDataFacilityReference            = "13"
	CaseFlightDataRequired                     = "14"
	CaseFlightDataCreateFailed                 = "15"
	CaseFlightDataGetFailed                    = "16"
	CaseFlightDataAfterFlightIncomplete        = "17"
	CaseFlightDataAfterFlightLocked            = "18"
)

const (
	CaseAirRescuerChecklistNotFound         = "01"
	CaseAirRescuerChecklistItemNotFound     = "02"
	CaseAirRescuerChecklistInvalidPayload   = "03"
	CaseAirRescuerChecklistInvalidJSON      = "04"
	CaseAirRescuerChecklistInvalidUUID      = "05"
	CaseAirRescuerChecklistIDMismatch       = "06"
	CaseAirRescuerChecklistScopeInvalid     = "07"
	CaseAirRescuerChecklistScopeRequired    = "08"
	CaseAirRescuerChecklistTitleRequired    = "09"
	CaseAirRescuerChecklistNameRequired     = "10"
	CaseAirRescuerChecklistBaseNotFound     = "11"
	CaseAirRescuerChecklistCreateFailed     = "12"
	CaseAirRescuerChecklistUpdateFailed     = "13"
	CaseAirRescuerChecklistDeleteFailed     = "14"
	CaseAirRescuerChecklistListFailed       = "15"
	CaseAirRescuerChecklistReorderFailed    = "16"
	CaseAirRescuerChecklistValidationFailed = "17"

	CaseTakeoverNotFound           = "01"
	CaseTakeoverInvalidPayload     = "02"
	CaseTakeoverInvalidJSON        = "03"
	CaseTakeoverInvalidUUID        = "04"
	CaseTakeoverIDRequired         = "05"
	CaseTakeoverIDMismatch         = "06"
	CaseTakeoverFileSectionInvalid = "07"
	CaseTakeoverCreateFailed       = "08"
	CaseTakeoverUpdateFailed       = "09"
	CaseTakeoverDeleteFailed       = "10"
	CaseTakeoverGetFailed          = "11"
	CaseTakeoverListFailed         = "12"
	CaseTakeoverHelicopterInUse    = "13"
	CaseTakeoverHelicopterAOG      = "14"
	CaseTakeoverHelicopterMCF      = "15"
)

const (
	CaseFleetStatusNotFound           = "01"
	CaseFleetStatusInvalidPayload     = "02"
	CaseFleetStatusInvalidJSON        = "03"
	CaseFleetStatusInvalidID          = "04"
	CaseFleetStatusIDRequired         = "05"
	CaseFleetStatusIDMismatch         = "06"
	CaseFleetStatusHelicopterRequired = "07"
	CaseFleetStatusHelicopterInvalid  = "08"
	CaseFleetStatusDuplicate          = "09"
	CaseFleetStatusRelationDelete     = "10"
	CaseFleetStatusCreateFailed       = "11"
	CaseFleetStatusUpdateFailed       = "12"
	CaseFleetStatusDeleteFailed       = "13"
	CaseFleetStatusListFailed         = "14"
	CaseFleetStatusMarkServicedFailed = "15"

	CaseFleetStatusFileInvalidJSON         = "16"
	CaseFleetStatusFileInvalidPayload      = "17"
	CaseFleetStatusFileUploadIntentInvalid = "19"
	CaseFleetStatusFileStorageUnavailable  = "20"
	CaseFleetStatusFileFailed              = "21"
)

const (
	CaseHEMSOperationNotFound                 = "01"
	CaseHEMSOperationInvalidPayload           = "02"
	CaseHEMSOperationInvalidJSON              = "03"
	CaseHEMSOperationInvalidUUID              = "04"
	CaseHEMSOperationAttributesRequired       = "05"
	CaseHEMSOperationDateInvalidRFC3339       = "06"
	CaseHEMSOperationRelationReferenceInvalid = "07"
	CaseHEMSOperationCreateFailed             = "08"
	CaseHEMSOperationUpdateFailed             = "09"
	CaseHEMSOperationDeleteFailed             = "10"
	CaseHEMSOperationListFailed               = "11"
)

const (
	CaseForcesPresentNotFound           = "12"
	CaseForcesPresentRelationDelete     = "13"
	CaseForcesPresentInvalidPayload     = "14"
	CaseForcesPresentInvalidJSON        = "15"
	CaseForcesPresentInvalidUUID        = "16"
	CaseForcesPresentIDRequired         = "17"
	CaseForcesPresentIDMismatch         = "18"
	CaseForcesPresentAttributesRequired = "19"
	CaseForcesPresentNameRequired       = "20"
	CaseForcesPresentCreateFailed       = "21"
	CaseForcesPresentUpdateFailed       = "22"
	CaseForcesPresentDeleteFailed       = "23"
	CaseForcesPresentListFailed         = "24"
)

const (
	CaseMissionNotFound           = "25"
	CaseMissionInvalidPayload     = "26"
	CaseMissionInvalidJSON        = "27"
	CaseMissionInvalidFlightUUID  = "28"
	CaseMissionFlightIDRequired   = "29"
	CaseMissionMissionIDRequired  = "30"
	CaseMissionTypeInvalid        = "31"
	CaseMissionSubtypeRequired    = "32"
	CaseMissionSubtypeInvalid     = "33"
	CaseMissionSubtypeForbidden   = "34"
	CaseMissionDuplicateFlight    = "35"
	CaseMissionCreateFailed       = "36"
	CaseMissionUpdateFailed       = "37"
	CaseMissionDeleteFailed       = "38"
	CaseMissionGetFailed          = "39"
	CaseMissionInvalidMissionUUID = "40"
	CaseMissionListFailed         = "41"
	CaseMissionAfterFlightLocked  = "42"

	CaseMissionFileInvalidJSON        = "43"
	CaseMissionFileValidation         = "44"
	CaseMissionFileInvalidMissionUUID = "45"
	CaseMissionFileMissionNotFound    = "46"
	CaseMissionFileServiceUnavailable = "47"
	CaseMissionFileActionFailed       = "48"
)

const (
	CaseContactNotFound                          = "01"
	CaseContactInvalidPayload                    = "02"
	CaseContactInvalidJSON                       = "03"
	CaseContactInvalidUserID                     = "04"
	CaseContactValidationFailed                  = "05"
	CaseContactCreateFailed                      = "06"
	CaseContactGetFailed                         = "07"
	CaseContactUpdateFailed                      = "08"
	CaseContactUsernameConflict                  = "09"
	CaseContactDeleteFailed                      = "10"
	CaseContactUpdateStatusFailed                = "11"
	CaseContactUpdateRoleFailed                  = "12"
	CaseContactUpdatePilotCategoryFailed         = "13"
	CaseContactUpdateLicenseFailed               = "14"
	CaseContactUpdateChiefFlagsFailed            = "15"
	CaseContactUpdateResponsibleComplaintsFailed = "16"
	CaseContactBulkUpdateFailed                  = "17"
	CaseContactListFailed                        = "18"
)

var (
	// General
	ErrInvalidRequest     = DefGeneral(http.StatusBadRequest, CaseGeneralInvalidRequest, CodeInvalidRequest, "invalid request")
	ErrInvalidDataType    = DefGeneralWithTitle(http.StatusUnprocessableEntity, CaseGeneralInvalidDataType, CodeInvalidDataType, "Invalid data type", "a field was sent with the wrong data type")
	ErrDataNotFound       = DefGeneral(http.StatusNotFound, CaseGeneralDataNotFound, CodeDataNotFound, "data not found")
	ErrValidation         = DefGeneral(http.StatusUnprocessableEntity, CaseGeneralValidationError, CodeValidationError, "validation error")
	ErrBusinessRuleFailed = DefGeneralWithTitle(http.StatusUnprocessableEntity, CaseGeneralBusinessRuleFailed, CodeBusinessRuleFailed, "Business rule failed", "business rule validation failed")
	ErrInternal           = DefGeneral(http.StatusInternalServerError, CaseGeneralInternalError, CodeInternalServerError, "internal server error")

	// Auth
	ErrSessionExpired                = DefAuth(http.StatusUnauthorized, CaseAuthSessionExpired, CodeSessionExpired, "session expired")
	ErrTokenInvalid                  = DefAuth(http.StatusUnauthorized, CaseAuthTokenInvalid, CodeTokenInvalid, "token is invalid")
	ErrUserUnauthorized              = DefAuth(http.StatusUnauthorized, CaseAuthUnauthorized, CodeUserUnauthorized, "user is unauthorized")
	ErrForbiddenAccess               = DefAuth(http.StatusForbidden, CaseAuthForbidden, CodeForbiddenAccess, "forbidden access")
	ErrAuthInvalidJSON               = DefAuth(http.StatusBadRequest, CaseAuthInvalidJSON, CodeAuthInvalidJSON, "invalid json")
	ErrAuthRegistrationDisabled      = DefAuth(http.StatusForbidden, CaseAuthRegistrationDisabled, CodeAuthRegistrationDisabled, "registration is disabled")
	ErrAuthRoleNotFound              = DefAuth(http.StatusBadRequest, CaseAuthRoleNotFound, CodeAuthRoleNotFound, "public registration role not found")
	ErrAuthRegistrationFailed        = DefAuth(http.StatusBadRequest, CaseAuthRegistrationFailed, CodeAuthRegistrationFailed, "registration failed")
	ErrAuthInviteFailed              = DefAuth(http.StatusBadRequest, CaseAuthInviteFailed, CodeAuthInviteFailed, "invite failed")
	ErrAuthSetPasswordFailed         = DefAuth(http.StatusBadRequest, CaseAuthSetPasswordFailed, CodeAuthSetPasswordFailed, "set password failed")
	ErrAuthSetPasswordTokenInvalid   = DefAuth(http.StatusBadRequest, CaseAuthSetPasswordTokenInvalid, CodeAuthSetPasswordTokenInvalid, "set password token invalid")
	ErrAuthUsernameAlreadyRegistered = DefAuth(http.StatusBadRequest, CaseAuthUsernameAlreadyRegistered, CodeAuthUsernameAlreadyRegistered, "username already registered")
	ErrAuthResetPasswordInvalidLink  = DefAuth(http.StatusBadRequest, CaseAuthResetPasswordInvalidLink, CodeAuthResetPasswordInvalidLink, "reset password link invalid")
	ErrAuthResetPasswordFailed       = DefAuth(http.StatusInternalServerError, CaseAuthResetPasswordFailed, CodeAuthResetPasswordFailed, "reset password failed")

	// PIN
	ErrPINVerificationRequired202 = DefPINWithTitle(http.StatusAccepted, CasePINVerificationRequired, CodePINVerificationRequired, "PIN verification required", "valid PIN action token is required")
	ErrPINIncorrect               = DefPIN(http.StatusUnauthorized, CasePINIncorrect, CodePINIncorrect, "invalid security pin")
	ErrPINBlocked                 = DefPIN(http.StatusLocked, CasePINBlocked, CodePINBlocked, "PIN has been blocked")
	ErrPINNotSet                  = DefPINWithTitle(http.StatusConflict, CasePINNotSet, CodePINNotSet, "PIN not configured", "security PIN is not set")
	ErrPINNotBlocked              = DefPINWithTitle(http.StatusConflict, CasePINNotBlocked, CodePINNotBlocked, "PIN not blocked", "security PIN is not blocked")
	ErrPINValidationFailed        = DefPIN(http.StatusUnprocessableEntity, CasePINValidationFailed, CodePINValidationFailed, "PIN validation failed")
	ErrPINAttemptLimitReached     = DefPIN(http.StatusTooManyRequests, CasePINAttemptLimitReached, CodePINAttemptLimitReached, "PIN attempt limit reached")

	// Helicopter
	ErrHelicopterNotFound                = DefHelicopter(http.StatusNotFound, CaseHelicopterNotFound, CodeHelicopterNotFound, "helicopter not found")
	ErrHelicopterDuplicate               = DefHelicopter(http.StatusConflict, CaseHelicopterDuplicate, CodeHelicopterDuplicate, "helicopter identifier already exists")
	ErrHelicopterRelationDelete          = DefHelicopter(http.StatusConflict, CaseHelicopterRelationDelete, CodeHelicopterRelationDelete, "cannot delete helicopter due to active relations")
	ErrHelicopterInvalidPayload          = DefHelicopter(http.StatusUnprocessableEntity, CaseHelicopterInvalidPayload, CodeHelicopterInvalidPayload, "invalid helicopter payload")
	ErrHelicopterInvalidType             = DefHelicopter(http.StatusUnprocessableEntity, CaseHelicopterInvalidType, CodeHelicopterInvalidType, "helicopter type is invalid")
	ErrHelicopterInvalidJSON             = DefHelicopter(http.StatusBadRequest, CaseHelicopterInvalidJSON, CodeHelicopterInvalidJSON, "invalid json payload")
	ErrHelicopterInvalidID               = DefHelicopter(http.StatusUnprocessableEntity, CaseHelicopterInvalidID, CodeHelicopterInvalidID, "helicopter id is invalid")
	ErrHelicopterIDRequired              = DefHelicopter(http.StatusUnprocessableEntity, CaseHelicopterIDRequired, CodeHelicopterIDRequired, "helicopter id is required")
	ErrHelicopterIDMismatch              = DefHelicopter(http.StatusUnprocessableEntity, CaseHelicopterIDMismatch, CodeHelicopterIDMismatch, "helicopter id mismatch")
	ErrHelicopterAttributesRequired      = DefHelicopter(http.StatusUnprocessableEntity, CaseHelicopterAttributesRequired, CodeHelicopterAttributesRequired, "at least one attribute must be provided")
	ErrHelicopterCreateFailed            = DefHelicopter(http.StatusBadRequest, CaseHelicopterCreateFailed, CodeHelicopterCreateFailed, "failed to create helicopter")
	ErrHelicopterUpdateFailed            = DefHelicopter(http.StatusBadRequest, CaseHelicopterUpdateFailed, CodeHelicopterUpdateFailed, "failed to update helicopter")
	ErrHelicopterDeleteFailed            = DefHelicopter(http.StatusBadRequest, CaseHelicopterDeleteFailed, CodeHelicopterDeleteFailed, "failed to delete helicopter")
	ErrHelicopterGenerateFailed          = DefHelicopter(http.StatusBadRequest, CaseHelicopterGenerateFailed, CodeHelicopterGenerateFailed, "failed to generate helicopter report number")
	ErrHelicopterListFailed              = DefHelicopter(http.StatusBadRequest, CaseHelicopterListFailed, CodeHelicopterListFailed, "failed to list helicopter data")
	ErrHelicopterPinVerificationRequired = DefHelicopterWithTitle(http.StatusAccepted, CaseHelicopterPinVerificationRequired, CodeHelicopterPinVerificationRequired, "PIN verification required", "valid PIN action token is required")
	ErrHelicopterUnauthorized            = DefHelicopter(http.StatusUnauthorized, CaseHelicopterUnauthorized, CodeHelicopterUnauthorized, "helicopter action unauthorized")
	ErrHelicopterFileNotFound            = DefHelicopter(http.StatusNotFound, CaseHelicopterFileNotFound, CodeHelicopterFileNotFound, "helicopter file not found")
	ErrHelicopterFileInvalidPayload      = DefHelicopter(http.StatusUnprocessableEntity, CaseHelicopterFileInvalidPayload, CodeHelicopterFileInvalidPayload, "invalid helicopter file payload")
	ErrHelicopterFileInvalidJSON         = DefHelicopter(http.StatusBadRequest, CaseHelicopterFileInvalidJSON, CodeHelicopterFileInvalidJSON, "invalid json payload")
	ErrHelicopterFileInvalidUUID         = DefHelicopter(http.StatusUnprocessableEntity, CaseHelicopterFileInvalidUUID, CodeHelicopterFileInvalidUUID, "helicopter file uuid is invalid")
	ErrHelicopterFileSectionInvalid      = DefHelicopter(http.StatusUnprocessableEntity, CaseHelicopterFileSectionInvalid, CodeHelicopterFileSectionInvalid, "section is invalid")
	ErrHelicopterFileFileNameRequired    = DefHelicopter(http.StatusUnprocessableEntity, CaseHelicopterFileFileNameRequired, CodeHelicopterFileFileNameRequired, "file_name is required")
	ErrHelicopterFileCreateFailed        = DefHelicopter(http.StatusBadRequest, CaseHelicopterFileCreateFailed, CodeHelicopterFileCreateFailed, "failed to create helicopter file")
	ErrHelicopterFileUpdateFailed        = DefHelicopter(http.StatusBadRequest, CaseHelicopterFileUpdateFailed, CodeHelicopterFileUpdateFailed, "failed to update helicopter file")
	ErrHelicopterFileDeleteFailed        = DefHelicopter(http.StatusBadRequest, CaseHelicopterFileDeleteFailed, CodeHelicopterFileDeleteFailed, "failed to delete helicopter file")
	ErrHelicopterFileGetFailed           = DefHelicopter(http.StatusBadRequest, CaseHelicopterFileGetFailed, CodeHelicopterFileGetFailed, "failed to get helicopter file")
	ErrHelicopterFileListFailed          = DefHelicopter(http.StatusBadRequest, CaseHelicopterFileListFailed, CodeHelicopterFileListFailed, "failed to list helicopter file data")
	ErrHelicopterUsageNotFound           = DefHelicopterUsage(http.StatusNotFound, CaseHelicopterUsageNotFound, CodeHelicopterUsageNotFound, "helicopter usage not found")
	ErrHelicopterUsageDuplicate          = DefHelicopterUsage(http.StatusConflict, CaseHelicopterUsageDuplicate, CodeHelicopterUsageDuplicate, "helicopter usage already exists")
	ErrHelicopterUsageRelationDelete     = DefHelicopterUsage(http.StatusConflict, CaseHelicopterUsageRelationDelete, CodeHelicopterUsageRelationDelete, "cannot delete helicopter usage due to active relations")
	ErrHelicopterUsageInvalidPayload     = DefHelicopterUsage(http.StatusUnprocessableEntity, CaseHelicopterUsageInvalidPayload, CodeHelicopterUsageInvalidPayload, "invalid helicopter usage payload")
	ErrHelicopterUsageInvalidJSON        = DefHelicopterUsage(http.StatusBadRequest, CaseHelicopterUsageInvalidJSON, CodeHelicopterUsageInvalidJSON, "invalid json payload")
	ErrHelicopterUsageInvalidUUID        = DefHelicopterUsage(http.StatusUnprocessableEntity, CaseHelicopterUsageInvalidUUID, CodeHelicopterUsageInvalidUUID, "helicopter usage uuid is invalid")
	ErrHelicopterUsageIDRequired         = DefHelicopterUsage(http.StatusUnprocessableEntity, CaseHelicopterUsageIDRequired, CodeHelicopterUsageIDRequired, "helicopter usage id is required")
	ErrHelicopterUsageIDMismatch         = DefHelicopterUsage(http.StatusUnprocessableEntity, CaseHelicopterUsageIDMismatch, CodeHelicopterUsageIDMismatch, "helicopter usage id mismatch")
	ErrHelicopterUsageAttributesRequired = DefHelicopterUsage(http.StatusUnprocessableEntity, CaseHelicopterUsageAttributesRequired, CodeHelicopterUsageAttributesRequired, "at least one helicopter usage attribute must be provided")
	ErrHelicopterUsageCreateFailed       = DefHelicopterUsage(http.StatusBadRequest, CaseHelicopterUsageCreateFailed, CodeHelicopterUsageCreateFailed, "failed to create helicopter usage")
	ErrHelicopterUsageGetFailed          = DefHelicopterUsage(http.StatusBadRequest, CaseHelicopterUsageGetFailed, CodeHelicopterUsageGetFailed, "failed to get helicopter usage")
	ErrHelicopterUsageUpdateFailed       = DefHelicopterUsage(http.StatusBadRequest, CaseHelicopterUsageUpdateFailed, CodeHelicopterUsageUpdateFailed, "failed to update helicopter usage")
	ErrHelicopterUsageDeleteFailed       = DefHelicopterUsage(http.StatusBadRequest, CaseHelicopterUsageDeleteFailed, CodeHelicopterUsageDeleteFailed, "failed to delete helicopter usage")
	ErrHelicopterUsageListFailed         = DefHelicopterUsage(http.StatusBadRequest, CaseHelicopterUsageListFailed, CodeHelicopterUsageListFailed, "failed to list helicopter usage data")
	ErrHelicopterUsageSyncFailed         = DefHelicopterUsageSync(http.StatusBadRequest, CaseHelicopterUsageSyncFailed, CodeHelicopterUsageSyncFailed, "failed to refresh helicopter usage data")

	ErrFMReportNotFound       = DefFMReport(http.StatusNotFound, CaseFMReportNotFound, CodeFMReportNotFound, "fm report not found")
	ErrFMReportInvalidJSON    = DefFMReport(http.StatusBadRequest, CaseFMReportInvalidJSON, CodeFMReportInvalidJSON, "invalid fm report json payload")
	ErrFMReportInvalidUUID    = DefFMReport(http.StatusUnprocessableEntity, CaseFMReportInvalidUUID, CodeFMReportInvalidUUID, "fm report uuid is invalid")
	ErrFMReportInvalidPayload = DefFMReport(http.StatusUnprocessableEntity, CaseFMReportInvalidPayload, CodeFMReportInvalidPayload, "invalid fm report payload")
	ErrFMReportCompleteFailed = DefFMReport(http.StatusBadRequest, CaseFMReportCompleteFailed, CodeFMReportCompleteFailed, "failed to complete fm report")
	ErrFMReportLocked         = DefFMReport(http.StatusLocked, CaseFMReportLocked, CodeFMReportLocked, "fm report is completed")

	// User
	ErrUserNotFound           = DefByModule(ModuleUser, http.StatusNotFound, CaseUserNotFound, CodeUserNotFound, "user not found")
	ErrUserInvalidPayload     = DefByModule(ModuleUser, http.StatusUnprocessableEntity, CaseUserInvalidPayload, CodeUserInvalidPayload, "invalid user payload")
	ErrUserInvalidJSON        = DefByModule(ModuleUser, http.StatusBadRequest, CaseUserInvalidJSON, CodeUserInvalidJSON, "invalid json payload")
	ErrUserInvalidUUID        = DefByModule(ModuleUser, http.StatusUnprocessableEntity, CaseUserInvalidUUID, CodeUserInvalidUUID, "user uuid is invalid")
	ErrUserValidationFailed   = DefByModule(ModuleUser, http.StatusUnprocessableEntity, CaseUserValidationFailed, CodeUserValidationFailed, "user validation failed")
	ErrUserCreateFailed       = DefByModule(ModuleUser, http.StatusBadRequest, CaseUserCreateFailed, CodeUserCreateFailed, "failed to create user")
	ErrUserUpdateFailed       = DefByModule(ModuleUser, http.StatusBadRequest, CaseUserUpdateFailed, CodeUserUpdateFailed, "failed to update user")
	ErrUserDeleteFailed       = DefByModule(ModuleUser, http.StatusBadRequest, CaseUserDeleteFailed, CodeUserDeleteFailed, "failed to delete user")
	ErrUserListFailed         = DefByModule(ModuleUser, http.StatusBadRequest, CaseUserListFailed, CodeUserListFailed, "failed to list users")
	ErrUserTimezoneInvalid    = DefByModule(ModuleUser, http.StatusUnprocessableEntity, CaseUserTimezoneInvalid, CodeUserTimezoneInvalid, "timezone is invalid")
	ErrUserRoleIDsInvalid     = DefByModule(ModuleUser, http.StatusUnprocessableEntity, CaseUserRoleIDsInvalid, CodeUserRoleIDsInvalid, "role_ids contains invalid uuid")
	ErrUserRoleIDsRequired    = DefByModule(ModuleUser, http.StatusUnprocessableEntity, CaseUserRoleIDsRequired, CodeUserRoleIDsRequired, "role_ids must contain at least one role")
	ErrUserPrimaryRoleInvalid = DefByModule(ModuleUser, http.StatusUnprocessableEntity, CaseUserPrimaryRoleInvalid, CodeUserPrimaryRoleInvalid, "primary role must be included in role_ids")

	// Master Data
	ErrMasterDataNotFound         = DefByModule(ModuleMasterData, http.StatusNotFound, CaseMasterDataNotFound, CodeMasterDataNotFound, "master data not found")
	ErrMasterDataInvalidPayload   = DefByModule(ModuleMasterData, http.StatusUnprocessableEntity, CaseMasterDataInvalidPayload, CodeMasterDataInvalidPayload, "invalid master data payload")
	ErrMasterDataInvalidJSON      = DefByModule(ModuleMasterData, http.StatusBadRequest, CaseMasterDataInvalidJSON, CodeMasterDataInvalidJSON, "invalid json payload")
	ErrMasterDataValidationFailed = DefByModule(ModuleMasterData, http.StatusUnprocessableEntity, CaseMasterDataValidationFailed, CodeMasterDataValidationFailed, "master data validation failed")
	ErrMasterDataCreateFailed     = DefByModule(ModuleMasterData, http.StatusBadRequest, CaseMasterDataCreateFailed, CodeMasterDataCreateFailed, "failed to create master data")
	ErrMasterDataUpdateFailed     = DefByModule(ModuleMasterData, http.StatusBadRequest, CaseMasterDataUpdateFailed, CodeMasterDataUpdateFailed, "failed to update master data")
	ErrMasterDataDeleteFailed     = DefByModule(ModuleMasterData, http.StatusBadRequest, CaseMasterDataDeleteFailed, CodeMasterDataDeleteFailed, "failed to delete master data")
	ErrMasterDataListFailed       = DefByModule(ModuleMasterData, http.StatusBadRequest, CaseMasterDataListFailed, CodeMasterDataListFailed, "failed to list master data")

	// Duty Roster
	ErrDutyRosterNotFound               = DefByModule(ModuleDutyRoster, http.StatusNotFound, CaseDutyRosterNotFound, CodeDutyRosterNotFound, "duty roster not found")
	ErrDutyRosterInvalidPayload         = DefByModule(ModuleDutyRoster, http.StatusUnprocessableEntity, CaseDutyRosterInvalidPayload, CodeDutyRosterInvalidPayload, "invalid duty roster payload")
	ErrDutyRosterInvalidJSON            = DefByModule(ModuleDutyRoster, http.StatusBadRequest, CaseDutyRosterInvalidJSON, CodeDutyRosterInvalidJSON, "invalid json payload")
	ErrDutyRosterInvalidUUID            = DefByModule(ModuleDutyRoster, http.StatusUnprocessableEntity, CaseDutyRosterInvalidUUID, CodeDutyRosterInvalidUUID, "duty roster uuid is invalid")
	ErrDutyRosterValidationFailed       = DefByModule(ModuleDutyRoster, http.StatusUnprocessableEntity, CaseDutyRosterValidationFailed, CodeDutyRosterValidationFailed, "duty roster validation failed")
	ErrDutyRosterConflict               = DefByModule(ModuleDutyRoster, http.StatusConflict, CaseDutyRosterConflict, CodeDutyRosterConflict, "duty roster conflict")
	ErrDutyRosterCreateFailed           = DefByModule(ModuleDutyRoster, http.StatusBadRequest, CaseDutyRosterCreateFailed, CodeDutyRosterCreateFailed, "failed to create duty roster")
	ErrDutyRosterUpdateFailed           = DefByModule(ModuleDutyRoster, http.StatusBadRequest, CaseDutyRosterUpdateFailed, CodeDutyRosterUpdateFailed, "failed to update duty roster")
	ErrDutyRosterDeleteFailed           = DefByModule(ModuleDutyRoster, http.StatusBadRequest, CaseDutyRosterDeleteFailed, CodeDutyRosterDeleteFailed, "failed to delete duty roster")
	ErrDutyRosterListFailed             = DefByModule(ModuleDutyRoster, http.StatusBadRequest, CaseDutyRosterListFailed, CodeDutyRosterListFailed, "failed to list duty roster data")
	ErrDutyRosterUnauthorized           = DefByModule(ModuleDutyRoster, http.StatusUnauthorized, CaseDutyRosterUnauthorized, CodeDutyRosterUnauthorized, "duty roster unauthorized")
	ErrDutyRosterBaseTypeInvalid        = DefByModule(ModuleDutyRoster, http.StatusUnprocessableEntity, CaseDutyRosterBaseTypeInvalid, CodeDutyRosterBaseTypeInvalid, "duty roster base type is invalid")
	ErrDutyRosterRelationDeleteConflict = DefByModule(ModuleDutyRoster, http.StatusConflict, CaseDutyRosterRelationDeleteConflict, CodeDutyRosterRelationDeleteConflict, "cannot delete duty roster due to active relations")

	// DUL
	ErrDULNotFound         = DefByModule(ModuleDUL, http.StatusNotFound, CaseDULNotFound, CodeDULNotFound, "dul not found")
	ErrDULInvalidPayload   = DefByModule(ModuleDUL, http.StatusUnprocessableEntity, CaseDULInvalidPayload, CodeDULInvalidPayload, "invalid dul payload")
	ErrDULInvalidJSON      = DefByModule(ModuleDUL, http.StatusBadRequest, CaseDULInvalidJSON, CodeDULInvalidJSON, "invalid json payload")
	ErrDULInvalidUUID      = DefByModule(ModuleDUL, http.StatusUnprocessableEntity, CaseDULInvalidUUID, CodeDULInvalidUUID, "dul uuid is invalid")
	ErrDULValidationFailed = DefByModule(ModuleDUL, http.StatusUnprocessableEntity, CaseDULValidationFailed, CodeDULValidationFailed, "dul validation failed")
	ErrDULCreateFailed     = DefByModule(ModuleDUL, http.StatusBadRequest, CaseDULCreateFailed, CodeDULCreateFailed, "failed to create dul")
	ErrDULUpdateFailed     = DefByModule(ModuleDUL, http.StatusBadRequest, CaseDULUpdateFailed, CodeDULUpdateFailed, "failed to update dul")
	ErrDULDeleteFailed     = DefByModule(ModuleDUL, http.StatusBadRequest, CaseDULDeleteFailed, CodeDULDeleteFailed, "failed to delete dul")
	ErrDULListFailed       = DefByModule(ModuleDUL, http.StatusBadRequest, CaseDULListFailed, CodeDULListFailed, "failed to list dul")
	ErrDULDateInvalid      = DefByModule(ModuleDUL, http.StatusUnprocessableEntity, CaseDULDateInvalid, CodeDULDateInvalid, "date must be YYYY-MM-DD")

	// Flight
	ErrFlightNotFound         = DefByModule(ModuleFlight, http.StatusNotFound, CaseFlightNotFound, CodeFlightNotFound, "flight not found")
	ErrFlightInvalidPayload   = DefByModule(ModuleFlight, http.StatusUnprocessableEntity, CaseFlightInvalidPayload, CodeFlightInvalidPayload, "invalid flight payload")
	ErrFlightInvalidJSON      = DefByModule(ModuleFlight, http.StatusBadRequest, CaseFlightInvalidJSON, CodeFlightInvalidJSON, "invalid json payload")
	ErrFlightInvalidUUID      = DefByModule(ModuleFlight, http.StatusUnprocessableEntity, CaseFlightInvalidUUID, CodeFlightInvalidUUID, "flight uuid is invalid")
	ErrFlightValidationFailed = DefByModule(ModuleFlight, http.StatusUnprocessableEntity, CaseFlightValidationFailed, CodeFlightValidationFailed, "flight validation failed")
	ErrFlightCreateFailed     = DefByModule(ModuleFlight, http.StatusBadRequest, CaseFlightCreateFailed, CodeFlightCreateFailed, "failed to create flight")
	ErrFlightGetFailed        = DefByModule(ModuleFlight, http.StatusBadRequest, CaseFlightGetFailed, CodeFlightGetFailed, "failed to get flight")
	ErrFlightListFailed       = DefByModule(ModuleFlight, http.StatusBadRequest, CaseFlightListFailed, CodeFlightListFailed, "failed to list flight data")
	ErrFlightUnauthorized     = DefByModule(ModuleFlight, http.StatusUnauthorized, CaseFlightUnauthorized, CodeFlightUnauthorized, "flight action unauthorized")
	ErrFlightDateInvalid      = DefByModule(ModuleFlight, http.StatusUnprocessableEntity, CaseFlightDateInvalid, CodeFlightDateInvalid, "date must be YYYY-MM-DD")

	// No ICAO Code
	ErrNoIcaoCodeNotFound           = DefByModule(ModuleHospital, http.StatusNotFound, CaseNoIcaoCodeNotFound, CodeNoIcaoCodeNotFound, "no icao code not found")
	ErrNoIcaoCodeRelationDelete     = DefByModule(ModuleHospital, http.StatusConflict, CaseNoIcaoCodeRelationDelete, CodeNoIcaoCodeRelationDelete, "cannot delete no icao code due to active relations")
	ErrNoIcaoCodeInvalidPayload     = DefByModule(ModuleHospital, http.StatusUnprocessableEntity, CaseNoIcaoCodeInvalidPayload, CodeNoIcaoCodeInvalidPayload, "invalid no icao code payload")
	ErrNoIcaoCodeInvalidJSON        = DefByModule(ModuleHospital, http.StatusBadRequest, CaseNoIcaoCodeInvalidJSON, CodeNoIcaoCodeInvalidJSON, "invalid json payload")
	ErrNoIcaoCodeInvalidUUID        = DefByModule(ModuleHospital, http.StatusUnprocessableEntity, CaseNoIcaoCodeInvalidUUID, CodeNoIcaoCodeInvalidUUID, "no icao code uuid is invalid")
	ErrNoIcaoCodeIDRequired         = DefByModule(ModuleHospital, http.StatusUnprocessableEntity, CaseNoIcaoCodeIDRequired, CodeNoIcaoCodeIDRequired, "no icao code id is required")
	ErrNoIcaoCodeIDMismatch         = DefByModule(ModuleHospital, http.StatusUnprocessableEntity, CaseNoIcaoCodeIDMismatch, CodeNoIcaoCodeIDMismatch, "no icao code id mismatch")
	ErrNoIcaoCodeAttributesRequired = DefByModule(ModuleHospital, http.StatusUnprocessableEntity, CaseNoIcaoCodeAttributesRequired, CodeNoIcaoCodeAttributesRequired, "at least one no icao code attribute must be provided")
	ErrNoIcaoCodeNameRequired       = DefByModule(ModuleHospital, http.StatusUnprocessableEntity, CaseNoIcaoCodeNameRequired, CodeNoIcaoCodeNameRequired, "no icao code name is required")
	ErrNoIcaoCodeCreateFailed       = DefByModule(ModuleHospital, http.StatusBadRequest, CaseNoIcaoCodeCreateFailed, CodeNoIcaoCodeCreateFailed, "failed to create no icao code")
	ErrNoIcaoCodeUpdateFailed       = DefByModule(ModuleHospital, http.StatusBadRequest, CaseNoIcaoCodeUpdateFailed, CodeNoIcaoCodeUpdateFailed, "failed to update no icao code")
	ErrNoIcaoCodeDeleteFailed       = DefByModule(ModuleHospital, http.StatusBadRequest, CaseNoIcaoCodeDeleteFailed, CodeNoIcaoCodeDeleteFailed, "failed to delete no icao code")
	ErrNoIcaoCodeListFailed         = DefByModule(ModuleHospital, http.StatusBadRequest, CaseNoIcaoCodeListFailed, CodeNoIcaoCodeListFailed, "failed to list no icao code data")
	ErrHospitalNotFound             = ErrNoIcaoCodeNotFound
	ErrHospitalRelationDelete       = ErrNoIcaoCodeRelationDelete
	ErrHospitalInvalidPayload       = ErrNoIcaoCodeInvalidPayload
	ErrHospitalInvalidJSON          = ErrNoIcaoCodeInvalidJSON
	ErrHospitalInvalidUUID          = ErrNoIcaoCodeInvalidUUID
	ErrHospitalIDRequired           = ErrNoIcaoCodeIDRequired
	ErrHospitalIDMismatch           = ErrNoIcaoCodeIDMismatch
	ErrHospitalAttributesRequired   = ErrNoIcaoCodeAttributesRequired
	ErrHospitalNameRequired         = ErrNoIcaoCodeNameRequired
	ErrHospitalCreateFailed         = ErrNoIcaoCodeCreateFailed
	ErrHospitalUpdateFailed         = ErrNoIcaoCodeUpdateFailed
	ErrHospitalDeleteFailed         = ErrNoIcaoCodeDeleteFailed
	ErrHospitalListFailed           = ErrNoIcaoCodeListFailed

	// Base
	ErrBaseNotFound                  = DefByModule(ModuleBase, http.StatusNotFound, CaseBaseNotFound, CodeBaseNotFound, "base not found")
	ErrBaseRelationDelete            = DefByModule(ModuleBase, http.StatusConflict, CaseBaseRelationDelete, CodeBaseRelationDelete, "cannot delete base because it is referenced by another record")
	ErrBaseInvalidPayload            = DefByModule(ModuleBase, http.StatusUnprocessableEntity, CaseBaseInvalidPayload, CodeBaseInvalidPayload, "invalid base payload")
	ErrBaseInvalidJSON               = DefByModule(ModuleBase, http.StatusBadRequest, CaseBaseInvalidJSON, CodeBaseInvalidJSON, "invalid json payload")
	ErrBaseInvalidUUID               = DefByModule(ModuleBase, http.StatusUnprocessableEntity, CaseBaseInvalidUUID, CodeBaseInvalidUUID, "base uuid is invalid")
	ErrBaseInvalidCategory           = DefByModule(ModuleBase, http.StatusUnprocessableEntity, CaseBaseInvalidCategory, CodeBaseInvalidCategory, "base category is invalid")
	ErrBaseAttributesRequired        = DefByModule(ModuleBase, http.StatusUnprocessableEntity, CaseBaseAttributesRequired, CodeBaseAttributesRequired, "at least one base attribute must be provided")
	ErrBaseNameRequired              = DefByModule(ModuleBase, http.StatusUnprocessableEntity, CaseBaseNameRequired, CodeBaseNameRequired, "base name is required")
	ErrBaseCreateFailed              = DefByModule(ModuleBase, http.StatusBadRequest, CaseBaseCreateFailed, CodeBaseCreateFailed, "failed to create base")
	ErrBaseUpdateFailed              = DefByModule(ModuleBase, http.StatusBadRequest, CaseBaseUpdateFailed, CodeBaseUpdateFailed, "failed to update base")
	ErrBaseDeleteFailed              = DefByModule(ModuleBase, http.StatusBadRequest, CaseBaseDeleteFailed, CodeBaseDeleteFailed, "failed to delete base")
	ErrBaseListFailed                = DefByModule(ModuleBase, http.StatusBadRequest, CaseBaseListFailed, CodeBaseListFailed, "failed to list base data")
	ErrBaseInvalidContactIDs         = DefByModule(ModuleBase, http.StatusUnprocessableEntity, CaseBaseInvalidContactIDs, CodeBaseInvalidContactIDs, "base contact ids are invalid")
	ErrBaseInvalidTime               = DefByModule(ModuleBase, http.StatusUnprocessableEntity, CaseBaseInvalidTime, CodeBaseInvalidTime, "base time format is invalid")
	ErrBaseDefaultShiftStartRequired = DefByModule(ModuleBase, http.StatusUnprocessableEntity, CaseBaseDefaultShiftStartRequired, CodeBaseDefaultShiftStartRequired, "default_shift_start is required")
	ErrBaseDefaultShiftEndRequired   = DefByModule(ModuleBase, http.StatusUnprocessableEntity, CaseBaseDefaultShiftEndRequired, CodeBaseDefaultShiftEndRequired, "default_shift_end is required")

	// Facility
	ErrFacilityNotFound           = DefByModule(ModuleFacility, http.StatusNotFound, CaseFacilityNotFound, CodeFacilityNotFound, "facility not found")
	ErrFacilityRelationDelete     = DefByModule(ModuleFacility, http.StatusConflict, CaseFacilityRelationDelete, CodeFacilityRelationDelete, "cannot delete facility due to active relations")
	ErrFacilityInvalidPayload     = DefByModule(ModuleFacility, http.StatusUnprocessableEntity, CaseFacilityInvalidPayload, CodeFacilityInvalidPayload, "invalid facility payload")
	ErrFacilityInvalidJSON        = DefByModule(ModuleFacility, http.StatusBadRequest, CaseFacilityInvalidJSON, CodeFacilityInvalidJSON, "invalid json payload")
	ErrFacilityInvalidUUID        = DefByModule(ModuleFacility, http.StatusUnprocessableEntity, CaseFacilityInvalidUUID, CodeFacilityInvalidUUID, "facility uuid is invalid")
	ErrFacilityAttributesRequired = DefByModule(ModuleFacility, http.StatusUnprocessableEntity, CaseFacilityAttributesRequired, CodeFacilityAttributesRequired, "at least one facility attribute must be provided")
	ErrFacilityCategoryRequired   = DefByModule(ModuleFacility, http.StatusUnprocessableEntity, CaseFacilityCategoryRequired, CodeFacilityCategoryRequired, "facility category is required")
	ErrFacilityNameRequired       = DefByModule(ModuleFacility, http.StatusUnprocessableEntity, CaseFacilityNameRequired, CodeFacilityNameRequired, "facility name is required")
	ErrFacilityTypeRequired       = DefByModule(ModuleFacility, http.StatusUnprocessableEntity, CaseFacilityTypeRequired, CodeFacilityTypeRequired, "facility type is required")
	ErrFacilityCreateFailed       = DefByModule(ModuleFacility, http.StatusBadRequest, CaseFacilityCreateFailed, CodeFacilityCreateFailed, "failed to create facility")
	ErrFacilityUpdateFailed       = DefByModule(ModuleFacility, http.StatusBadRequest, CaseFacilityUpdateFailed, CodeFacilityUpdateFailed, "failed to update facility")
	ErrFacilityDeleteFailed       = DefByModule(ModuleFacility, http.StatusBadRequest, CaseFacilityDeleteFailed, CodeFacilityDeleteFailed, "failed to delete facility")
	ErrFacilityListFailed         = DefByModule(ModuleFacility, http.StatusBadRequest, CaseFacilityListFailed, CodeFacilityListFailed, "failed to list facility data")

	// Federal State
	ErrFederalStateNotFound           = DefByModule(ModuleFederalState, http.StatusNotFound, CaseFederalStateNotFound, CodeFederalStateNotFound, "federal state not found")
	ErrFederalStateRelationDelete     = DefByModule(ModuleFederalState, http.StatusConflict, CaseFederalStateRelationDelete, CodeFederalStateRelationDelete, "cannot delete federal state due to active relations")
	ErrFederalStateInvalidPayload     = DefByModule(ModuleFederalState, http.StatusUnprocessableEntity, CaseFederalStateInvalidPayload, CodeFederalStateInvalidPayload, "invalid federal state payload")
	ErrFederalStateInvalidJSON        = DefByModule(ModuleFederalState, http.StatusBadRequest, CaseFederalStateInvalidJSON, CodeFederalStateInvalidJSON, "invalid json payload")
	ErrFederalStateInvalidID          = DefByModule(ModuleFederalState, http.StatusUnprocessableEntity, CaseFederalStateInvalidID, CodeFederalStateInvalidID, "federal state id is invalid")
	ErrFederalStateLandIDInvalid      = DefByModule(ModuleFederalState, http.StatusUnprocessableEntity, CaseFederalStateLandIDInvalid, CodeFederalStateLandIDInvalid, "federal state land_id is invalid")
	ErrFederalStateIDRequired         = DefByModule(ModuleFederalState, http.StatusUnprocessableEntity, CaseFederalStateIDRequired, CodeFederalStateIDRequired, "federal state id is required")
	ErrFederalStateIDMismatch         = DefByModule(ModuleFederalState, http.StatusUnprocessableEntity, CaseFederalStateIDMismatch, CodeFederalStateIDMismatch, "federal state id mismatch")
	ErrFederalStateAttributesRequired = DefByModule(ModuleFederalState, http.StatusUnprocessableEntity, CaseFederalStateAttributesRequired, CodeFederalStateAttributesRequired, "at least one federal state attribute must be provided")
	ErrFederalStateNameRequired       = DefByModule(ModuleFederalState, http.StatusUnprocessableEntity, CaseFederalStateNameRequired, CodeFederalStateNameRequired, "federal state name is required")
	ErrFederalStateCreateFailed       = DefByModule(ModuleFederalState, http.StatusBadRequest, CaseFederalStateCreateFailed, CodeFederalStateCreateFailed, "failed to create federal state")
	ErrFederalStateUpdateFailed       = DefByModule(ModuleFederalState, http.StatusBadRequest, CaseFederalStateUpdateFailed, CodeFederalStateUpdateFailed, "failed to update federal state")
	ErrFederalStateDeleteFailed       = DefByModule(ModuleFederalState, http.StatusBadRequest, CaseFederalStateDeleteFailed, CodeFederalStateDeleteFailed, "failed to delete federal state")
	ErrFederalStateListFailed         = DefByModule(ModuleFederalState, http.StatusBadRequest, CaseFederalStateListFailed, CodeFederalStateListFailed, "failed to list federal state data")

	// Nationality
	ErrNationalityNotFound           = DefByModule(ModuleNationality, http.StatusNotFound, CaseNationalityNotFound, CodeNationalityNotFound, "nationality not found")
	ErrNationalityRelationDelete     = DefByModule(ModuleNationality, http.StatusConflict, CaseNationalityRelationDelete, CodeNationalityRelationDelete, "cannot delete nationality due to active relations")
	ErrNationalityInvalidPayload     = DefByModule(ModuleNationality, http.StatusUnprocessableEntity, CaseNationalityInvalidPayload, CodeNationalityInvalidPayload, "invalid nationality payload")
	ErrNationalityInvalidJSON        = DefByModule(ModuleNationality, http.StatusBadRequest, CaseNationalityInvalidJSON, CodeNationalityInvalidJSON, "invalid json payload")
	ErrNationalityInvalidUUID        = DefByModule(ModuleNationality, http.StatusUnprocessableEntity, CaseNationalityInvalidUUID, CodeNationalityInvalidUUID, "nationality uuid is invalid")
	ErrNationalityIDRequired         = DefByModule(ModuleNationality, http.StatusUnprocessableEntity, CaseNationalityIDRequired, CodeNationalityIDRequired, "nationality id is required")
	ErrNationalityIDMismatch         = DefByModule(ModuleNationality, http.StatusUnprocessableEntity, CaseNationalityIDMismatch, CodeNationalityIDMismatch, "nationality id mismatch")
	ErrNationalityAttributesRequired = DefByModule(ModuleNationality, http.StatusUnprocessableEntity, CaseNationalityAttributesRequired, CodeNationalityAttributesRequired, "at least one nationality attribute must be provided")
	ErrNationalityNameRequired       = DefByModule(ModuleNationality, http.StatusUnprocessableEntity, CaseNationalityNameRequired, CodeNationalityNameRequired, "nationality name is required")
	ErrNationalityCreateFailed       = DefByModule(ModuleNationality, http.StatusBadRequest, CaseNationalityCreateFailed, CodeNationalityCreateFailed, "failed to create nationality")
	ErrNationalityUpdateFailed       = DefByModule(ModuleNationality, http.StatusBadRequest, CaseNationalityUpdateFailed, CodeNationalityUpdateFailed, "failed to update nationality")
	ErrNationalityDeleteFailed       = DefByModule(ModuleNationality, http.StatusBadRequest, CaseNationalityDeleteFailed, CodeNationalityDeleteFailed, "failed to delete nationality")
	ErrNationalityListFailed         = DefByModule(ModuleNationality, http.StatusBadRequest, CaseNationalityListFailed, CodeNationalityListFailed, "failed to list nationality data")

	// Country
	ErrCountryNotFound           = DefByModule(ModuleLand, http.StatusNotFound, CaseCountryNotFound, CodeCountryNotFound, "country not found")
	ErrCountryRelationDelete     = DefByModule(ModuleLand, http.StatusConflict, CaseCountryRelationDelete, CodeCountryRelationDelete, "cannot delete country due to active relations")
	ErrCountryInvalidPayload     = DefByModule(ModuleLand, http.StatusUnprocessableEntity, CaseCountryInvalidPayload, CodeCountryInvalidPayload, "invalid country payload")
	ErrCountryInvalidJSON        = DefByModule(ModuleLand, http.StatusBadRequest, CaseCountryInvalidJSON, CodeCountryInvalidJSON, "invalid json payload")
	ErrCountryInvalidID          = DefByModule(ModuleLand, http.StatusUnprocessableEntity, CaseCountryInvalidID, CodeCountryInvalidID, "country id is invalid")
	ErrCountryIDRequired         = DefByModule(ModuleLand, http.StatusUnprocessableEntity, CaseCountryIDRequired, CodeCountryIDRequired, "country id is required")
	ErrCountryIDMismatch         = DefByModule(ModuleLand, http.StatusUnprocessableEntity, CaseCountryIDMismatch, CodeCountryIDMismatch, "country id mismatch")
	ErrCountryAttributesRequired = DefByModule(ModuleLand, http.StatusUnprocessableEntity, CaseCountryAttributesRequired, CodeCountryAttributesRequired, "at least one country attribute must be provided")
	ErrCountryNameRequired       = DefByModule(ModuleLand, http.StatusUnprocessableEntity, CaseCountryNameRequired, CodeCountryNameRequired, "country name is required")
	ErrCountryISOCodeInvalid     = DefByModule(ModuleLand, http.StatusUnprocessableEntity, CaseCountryISOCodeInvalid, CodeCountryISOCodeInvalid, "country iso_code is invalid")
	ErrCountryISOCodeDuplicate   = DefByModule(ModuleLand, http.StatusConflict, CaseCountryISOCodeDuplicate, CodeCountryISOCodeDuplicate, "iso_code already exists")
	ErrCountryCreateFailed       = DefByModule(ModuleLand, http.StatusBadRequest, CaseCountryCreateFailed, CodeCountryCreateFailed, "failed to create country")
	ErrCountryUpdateFailed       = DefByModule(ModuleLand, http.StatusBadRequest, CaseCountryUpdateFailed, CodeCountryUpdateFailed, "failed to update country")
	ErrCountryDeleteFailed       = DefByModule(ModuleLand, http.StatusBadRequest, CaseCountryDeleteFailed, CodeCountryDeleteFailed, "failed to delete country")
	ErrCountryListFailed         = DefByModule(ModuleLand, http.StatusBadRequest, CaseCountryListFailed, CodeCountryListFailed, "failed to list country data")
	ErrLandNotFound              = ErrCountryNotFound
	ErrLandRelationDelete        = ErrCountryRelationDelete
	ErrLandInvalidPayload        = ErrCountryInvalidPayload
	ErrLandInvalidJSON           = ErrCountryInvalidJSON
	ErrLandInvalidID             = ErrCountryInvalidID
	ErrLandIDRequired            = ErrCountryIDRequired
	ErrLandIDMismatch            = ErrCountryIDMismatch
	ErrLandAttributesRequired    = ErrCountryAttributesRequired
	ErrLandNameRequired          = ErrCountryNameRequired
	ErrLandISOCodeInvalid        = ErrCountryISOCodeInvalid
	ErrLandISOCodeDuplicate      = ErrCountryISOCodeDuplicate
	ErrLandCreateFailed          = ErrCountryCreateFailed
	ErrLandUpdateFailed          = ErrCountryUpdateFailed
	ErrLandDeleteFailed          = ErrCountryDeleteFailed
	ErrLandListFailed            = ErrCountryListFailed

	// ICAO
	ErrICAONotFound            = DefByModule(ModuleICAO, http.StatusNotFound, CaseICAONotFound, CodeICAONotFound, "icao not found")
	ErrICAORelationDelete      = DefByModule(ModuleICAO, http.StatusConflict, CaseICAORelationDelete, CodeICAORelationDelete, "cannot delete icao due to active relations")
	ErrICAOInvalidPayload      = DefByModule(ModuleICAO, http.StatusUnprocessableEntity, CaseICAOInvalidPayload, CodeICAOInvalidPayload, "invalid icao payload")
	ErrICAOInvalidJSON         = DefByModule(ModuleICAO, http.StatusBadRequest, CaseICAOInvalidJSON, CodeICAOInvalidJSON, "invalid json payload")
	ErrICAOInvalidUUID         = DefByModule(ModuleICAO, http.StatusUnprocessableEntity, CaseICAOInvalidUUID, CodeICAOInvalidUUID, "icao uuid is invalid")
	ErrICAOIDRequired          = DefByModule(ModuleICAO, http.StatusUnprocessableEntity, CaseICAOIDRequired, CodeICAOIDRequired, "icao id is required")
	ErrICAOIDMismatch          = DefByModule(ModuleICAO, http.StatusUnprocessableEntity, CaseICAOIDMismatch, CodeICAOIDMismatch, "icao id mismatch")
	ErrICAOAttributesRequired  = DefByModule(ModuleICAO, http.StatusUnprocessableEntity, CaseICAOAttributesRequired, CodeICAOAttributesRequired, "at least one icao attribute must be provided")
	ErrICAOCodeRequired        = DefByModule(ModuleICAO, http.StatusUnprocessableEntity, CaseICAOCodeRequired, CodeICAOCodeRequired, "icao code is required")
	ErrICAOLandIDInvalid       = DefByModule(ModuleICAO, http.StatusUnprocessableEntity, CaseICAOLandIDInvalid, CodeICAOLandIDInvalid, "icao land_id is invalid")
	ErrICAOFederalStateInvalid = DefByModule(ModuleICAO, http.StatusUnprocessableEntity, CaseICAOFederalStateInvalid, CodeICAOFederalStateInvalid, "icao federal_state_id is invalid")
	ErrICAOCreateFailed        = DefByModule(ModuleICAO, http.StatusBadRequest, CaseICAOCreateFailed, CodeICAOCreateFailed, "failed to create icao")
	ErrICAOUpdateFailed        = DefByModule(ModuleICAO, http.StatusBadRequest, CaseICAOUpdateFailed, CodeICAOUpdateFailed, "failed to update icao")
	ErrICAODeleteFailed        = DefByModule(ModuleICAO, http.StatusBadRequest, CaseICAODeleteFailed, CodeICAODeleteFailed, "failed to delete icao")
	ErrICAOListFailed          = DefByModule(ModuleICAO, http.StatusBadRequest, CaseICAOListFailed, CodeICAOListFailed, "failed to list icao data")

	// Vocation
	ErrVocationNotFound           = DefByModule(ModuleVocation, http.StatusNotFound, CaseVocationNotFound, CodeVocationNotFound, "vocation not found")
	ErrVocationRelationDelete     = DefByModule(ModuleVocation, http.StatusConflict, CaseVocationRelationDelete, CodeVocationRelationDelete, "cannot delete vocation due to active relations")
	ErrVocationInvalidPayload     = DefByModule(ModuleVocation, http.StatusUnprocessableEntity, CaseVocationInvalidPayload, CodeVocationInvalidPayload, "invalid vocation payload")
	ErrVocationInvalidJSON        = DefByModule(ModuleVocation, http.StatusBadRequest, CaseVocationInvalidJSON, CodeVocationInvalidJSON, "invalid json payload")
	ErrVocationInvalidUUID        = DefByModule(ModuleVocation, http.StatusUnprocessableEntity, CaseVocationInvalidUUID, CodeVocationInvalidUUID, "vocation uuid is invalid")
	ErrVocationIDRequired         = DefByModule(ModuleVocation, http.StatusUnprocessableEntity, CaseVocationIDRequired, CodeVocationIDRequired, "vocation id is required")
	ErrVocationIDMismatch         = DefByModule(ModuleVocation, http.StatusUnprocessableEntity, CaseVocationIDMismatch, CodeVocationIDMismatch, "vocation id mismatch")
	ErrVocationAttributesRequired = DefByModule(ModuleVocation, http.StatusUnprocessableEntity, CaseVocationAttributesRequired, CodeVocationAttributesRequired, "at least one vocation attribute must be provided")
	ErrVocationNameRequired       = DefByModule(ModuleVocation, http.StatusUnprocessableEntity, CaseVocationNameRequired, CodeVocationNameRequired, "vocation name is required")
	ErrVocationCreateFailed       = DefByModule(ModuleVocation, http.StatusBadRequest, CaseVocationCreateFailed, CodeVocationCreateFailed, "failed to create vocation")
	ErrVocationUpdateFailed       = DefByModule(ModuleVocation, http.StatusBadRequest, CaseVocationUpdateFailed, CodeVocationUpdateFailed, "failed to update vocation")
	ErrVocationDeleteFailed       = DefByModule(ModuleVocation, http.StatusBadRequest, CaseVocationDeleteFailed, CodeVocationDeleteFailed, "failed to delete vocation")
	ErrVocationListFailed         = DefByModule(ModuleVocation, http.StatusBadRequest, CaseVocationListFailed, CodeVocationListFailed, "failed to list vocation data")

	// Health Insurance Companies
	ErrHealthInsuranceNotFound           = DefByModule(ModuleHealthInsuranceCompanies, http.StatusNotFound, CaseHealthInsuranceNotFound, CodeHealthInsuranceNotFound, "health insurance company not found")
	ErrHealthInsuranceRelationDelete     = DefByModule(ModuleHealthInsuranceCompanies, http.StatusConflict, CaseHealthInsuranceRelationDelete, CodeHealthInsuranceRelationDelete, "cannot delete health insurance company due to active relations")
	ErrHealthInsuranceInvalidPayload     = DefByModule(ModuleHealthInsuranceCompanies, http.StatusUnprocessableEntity, CaseHealthInsuranceInvalidPayload, CodeHealthInsuranceInvalidPayload, "invalid health insurance company payload")
	ErrHealthInsuranceInvalidJSON        = DefByModule(ModuleHealthInsuranceCompanies, http.StatusBadRequest, CaseHealthInsuranceInvalidJSON, CodeHealthInsuranceInvalidJSON, "invalid json payload")
	ErrHealthInsuranceInvalidUUID        = DefByModule(ModuleHealthInsuranceCompanies, http.StatusUnprocessableEntity, CaseHealthInsuranceInvalidUUID, CodeHealthInsuranceInvalidUUID, "health insurance company uuid is invalid")
	ErrHealthInsuranceIDRequired         = DefByModule(ModuleHealthInsuranceCompanies, http.StatusUnprocessableEntity, CaseHealthInsuranceIDRequired, CodeHealthInsuranceIDRequired, "health insurance company id is required")
	ErrHealthInsuranceIDMismatch         = DefByModule(ModuleHealthInsuranceCompanies, http.StatusUnprocessableEntity, CaseHealthInsuranceIDMismatch, CodeHealthInsuranceIDMismatch, "health insurance company id mismatch")
	ErrHealthInsuranceAttributesRequired = DefByModule(ModuleHealthInsuranceCompanies, http.StatusUnprocessableEntity, CaseHealthInsuranceAttributesRequired, CodeHealthInsuranceAttributesRequired, "at least one health insurance company attribute must be provided")
	ErrHealthInsuranceNameRequired       = DefByModule(ModuleHealthInsuranceCompanies, http.StatusUnprocessableEntity, CaseHealthInsuranceNameRequired, CodeHealthInsuranceNameRequired, "health insurance company name is required")
	ErrHealthInsuranceLandIDInvalid      = DefByModule(ModuleHealthInsuranceCompanies, http.StatusUnprocessableEntity, CaseHealthInsuranceLandIDInvalid, CodeHealthInsuranceLandIDInvalid, "health insurance company land_id is invalid")
	ErrHealthInsuranceCreateFailed       = DefByModule(ModuleHealthInsuranceCompanies, http.StatusBadRequest, CaseHealthInsuranceCreateFailed, CodeHealthInsuranceCreateFailed, "failed to create health insurance company")
	ErrHealthInsuranceUpdateFailed       = DefByModule(ModuleHealthInsuranceCompanies, http.StatusBadRequest, CaseHealthInsuranceUpdateFailed, CodeHealthInsuranceUpdateFailed, "failed to update health insurance company")
	ErrHealthInsuranceDeleteFailed       = DefByModule(ModuleHealthInsuranceCompanies, http.StatusBadRequest, CaseHealthInsuranceDeleteFailed, CodeHealthInsuranceDeleteFailed, "failed to delete health insurance company")
	ErrHealthInsuranceListFailed         = DefByModule(ModuleHealthInsuranceCompanies, http.StatusBadRequest, CaseHealthInsuranceListFailed, CodeHealthInsuranceListFailed, "failed to list health insurance company data")

	// Medicine
	ErrMedicineNotFound                = DefByModule(ModuleMedicine, http.StatusNotFound, CaseMedicineNotFound, CodeMedicineNotFound, "medicine not found")
	ErrMedicineRelationDelete          = DefByModule(ModuleMedicine, http.StatusConflict, CaseMedicineRelationDelete, CodeMedicineRelationDelete, "cannot delete medicine due to active relations")
	ErrMedicineInvalidPayload          = DefByModule(ModuleMedicine, http.StatusUnprocessableEntity, CaseMedicineInvalidPayload, CodeMedicineInvalidPayload, "invalid medicine payload")
	ErrMedicineInvalidJSON             = DefByModule(ModuleMedicine, http.StatusBadRequest, CaseMedicineInvalidJSON, CodeMedicineInvalidJSON, "invalid json payload")
	ErrMedicineInvalidUUID             = DefByModule(ModuleMedicine, http.StatusUnprocessableEntity, CaseMedicineInvalidUUID, CodeMedicineInvalidUUID, "medicine uuid is invalid")
	ErrMedicineIDRequired              = DefByModule(ModuleMedicine, http.StatusUnprocessableEntity, CaseMedicineIDRequired, CodeMedicineIDRequired, "medicine id is required")
	ErrMedicineIDMismatch              = DefByModule(ModuleMedicine, http.StatusUnprocessableEntity, CaseMedicineIDMismatch, CodeMedicineIDMismatch, "medicine id mismatch")
	ErrMedicineAttributesRequired      = DefByModule(ModuleMedicine, http.StatusUnprocessableEntity, CaseMedicineAttributesRequired, CodeMedicineAttributesRequired, "at least one medicine attribute must be provided")
	ErrMedicineNameRequired            = DefByModule(ModuleMedicine, http.StatusUnprocessableEntity, CaseMedicineNameRequired, CodeMedicineNameRequired, "medicine name is required")
	ErrMedicineGroupIDInvalid          = DefByModule(ModuleMedicine, http.StatusUnprocessableEntity, CaseMedicineGroupIDInvalid, CodeMedicineGroupIDInvalid, "medicine_group_id is invalid")
	ErrMedicineMotorReactionIDInvalid  = DefByModule(ModuleMedicine, http.StatusUnprocessableEntity, CaseMedicineMotorReactionIDInvalid, CodeMedicineMotorReactionIDInvalid, "motor_reaction_id is invalid")
	ErrMedicineMotorReactionIDsInvalid = DefByModule(ModuleMedicine, http.StatusUnprocessableEntity, CaseMedicineMotorReactionIDsInvalid, CodeMedicineMotorReactionIDsInvalid, "motor_reaction_ids contains invalid uuid")
	ErrMedicineCreateFailed            = DefByModule(ModuleMedicine, http.StatusBadRequest, CaseMedicineCreateFailed, CodeMedicineCreateFailed, "failed to create medicine")
	ErrMedicineUpdateFailed            = DefByModule(ModuleMedicine, http.StatusBadRequest, CaseMedicineUpdateFailed, CodeMedicineUpdateFailed, "failed to update medicine")
	ErrMedicineDeleteFailed            = DefByModule(ModuleMedicine, http.StatusBadRequest, CaseMedicineDeleteFailed, CodeMedicineDeleteFailed, "failed to delete medicine")
	ErrMedicineListFailed              = DefByModule(ModuleMedicine, http.StatusBadRequest, CaseMedicineListFailed, CodeMedicineListFailed, "failed to list medicine data")

	// Master Settings
	ErrMasterSettingsNotFound            = DefByModule(ModuleMasterSettings, http.StatusNotFound, CaseMasterSettingsNotFound, CodeMasterSettingsNotFound, "master settings not found")
	ErrMasterSettingsInvalidPayload      = DefByModule(ModuleMasterSettings, http.StatusUnprocessableEntity, CaseMasterSettingsInvalidPayload, CodeMasterSettingsInvalidPayload, "invalid master settings payload")
	ErrMasterSettingsInvalidJSON         = DefByModule(ModuleMasterSettings, http.StatusBadRequest, CaseMasterSettingsInvalidJSON, CodeMasterSettingsInvalidJSON, "invalid json payload")
	ErrMasterSettingsInvalidUUID         = DefByModule(ModuleMasterSettings, http.StatusUnprocessableEntity, CaseMasterSettingsInvalidUUID, CodeMasterSettingsInvalidUUID, "master settings uuid is invalid")
	ErrMasterSettingsIDRequired          = DefByModule(ModuleMasterSettings, http.StatusUnprocessableEntity, CaseMasterSettingsIDRequired, CodeMasterSettingsIDRequired, "master settings id is required")
	ErrMasterSettingsIDMismatch          = DefByModule(ModuleMasterSettings, http.StatusUnprocessableEntity, CaseMasterSettingsIDMismatch, CodeMasterSettingsIDMismatch, "master settings id mismatch")
	ErrMasterSettingsAttributesRequired  = DefByModule(ModuleMasterSettings, http.StatusUnprocessableEntity, CaseMasterSettingsAttributesRequired, CodeMasterSettingsAttributesRequired, "at least one master settings attribute must be provided")
	ErrMasterSettingsCompanyNameRequired = DefByModule(ModuleMasterSettings, http.StatusUnprocessableEntity, CaseMasterSettingsCompanyNameRequired, CodeMasterSettingsCompanyNameRequired, "company_name is required")
	ErrMasterSettingsLogoFileInvalid     = DefByModule(ModuleMasterSettings, http.StatusUnprocessableEntity, CaseMasterSettingsLogoFileInvalid, CodeMasterSettingsLogoFileInvalid, "logo file uuid is invalid")
	ErrMasterSettingsCoverFileInvalid    = DefByModule(ModuleMasterSettings, http.StatusUnprocessableEntity, CaseMasterSettingsCoverFileInvalid, CodeMasterSettingsCoverFileInvalid, "cover file uuid is invalid")
	ErrMasterSettingsCreateFailed        = DefByModule(ModuleMasterSettings, http.StatusBadRequest, CaseMasterSettingsCreateFailed, CodeMasterSettingsCreateFailed, "failed to create master settings")
	ErrMasterSettingsUpdateFailed        = DefByModule(ModuleMasterSettings, http.StatusBadRequest, CaseMasterSettingsUpdateFailed, CodeMasterSettingsUpdateFailed, "failed to update master settings")
	ErrMasterSettingsDeleteFailed        = DefByModule(ModuleMasterSettings, http.StatusBadRequest, CaseMasterSettingsDeleteFailed, CodeMasterSettingsDeleteFailed, "failed to delete master settings")
	ErrMasterSettingsGetFailed           = DefByModule(ModuleMasterSettings, http.StatusBadRequest, CaseMasterSettingsGetFailed, CodeMasterSettingsGetFailed, "failed to get master settings")
	ErrMasterSettingsMicrosoftUpsert     = DefByModule(ModuleMasterSettings, http.StatusBadRequest, CaseMasterSettingsMicrosoftUpsert, CodeMasterSettingsMicrosoftUpsertFailed, "failed to upsert microsoft entra sso settings")

	// Branding
	ErrBrandingLogoFetchFailed        = DefByModule(ModuleBranding, http.StatusBadRequest, CaseBrandingLogoFetchFailed, CodeBrandingLogoFetchFailed, "failed to fetch branding logo")
	ErrBrandingCoverFetchFailed       = DefByModule(ModuleBranding, http.StatusBadRequest, CaseBrandingCoverFetchFailed, CodeBrandingCoverFetchFailed, "failed to fetch branding cover")
	ErrBrandingEmailLogoFetchFailed   = DefByModule(ModuleBranding, http.StatusBadRequest, CaseBrandingEmailLogoFetchFailed, CodeBrandingEmailLogoFetchFailed, "failed to fetch branding email logo")
	ErrBrandingContentFetchFailed     = DefByModule(ModuleBranding, http.StatusBadRequest, CaseBrandingContentFetchFailed, CodeBrandingContentFetchFailed, "failed to fetch branding content")
	ErrBrandingStorageUnavailable     = DefByModule(ModuleBranding, http.StatusServiceUnavailable, CaseBrandingStorageUnavailable, CodeBrandingStorageUnavailable, "branding storage service unavailable")
	ErrBrandingFileManagerUnavailable = DefByModule(ModuleBranding, http.StatusServiceUnavailable, CaseBrandingFileManagerUnavailable, CodeBrandingFileManagerUnavailable, "branding file manager service unavailable")

	// File Manager
	ErrFileManagerStorageUnavailable           = DefByModuleWithTitle(ModuleFileManager, http.StatusServiceUnavailable, CaseFileManagerStorageUnavailable, CodeFileManagerStorageUnavailable, "Storage unavailable", "storage service is unavailable")
	ErrFileManagerQueueUnavailable             = DefByModuleWithTitle(ModuleFileManager, http.StatusServiceUnavailable, CaseFileManagerQueueUnavailable, CodeFileManagerQueueUnavailable, "Queue unavailable", "queue service is unavailable")
	ErrFileManagerUploadIntentUnavailable      = DefByModuleWithTitle(ModuleFileManager, http.StatusServiceUnavailable, CaseFileManagerUploadIntentUnavailable, CodeFileManagerUploadIntentUnavailable, "Upload intent unavailable", "upload intent service is unavailable")
	ErrFileManagerAttachmentServiceUnavailable = DefByModuleWithTitle(ModuleFileManager, http.StatusServiceUnavailable, CaseFileManagerAttachmentServiceUnavailable, CodeFileManagerAttachmentServiceUnavailable, "Attachment service unavailable", "attachment service is unavailable")
	ErrFileManagerFolderNotFound               = DefByModule(ModuleFileManager, http.StatusNotFound, CaseFileManagerFolderNotFound, CodeFileManagerFolderNotFound, "folder not found")
	ErrFileManagerFileNotFound                 = DefByModule(ModuleFileManager, http.StatusNotFound, CaseFileManagerFileNotFound, CodeFileManagerFileNotFound, "file not found")
	ErrFileManagerAttachmentNotFound           = DefByModule(ModuleFileManager, http.StatusNotFound, CaseFileManagerAttachmentNotFound, CodeFileManagerAttachmentNotFound, "attachment not found")
	ErrFileManagerUploadIntentNotFound         = DefByModule(ModuleFileManager, http.StatusNotFound, CaseFileManagerUploadIntentNotFound, CodeFileManagerUploadIntentNotFound, "upload intent not found")
	ErrFileManagerStatusConflict               = DefByModule(ModuleFileManager, http.StatusConflict, CaseFileManagerStatusConflict, CodeFileManagerStatusConflict, "file status conflict")
	ErrFileManagerUploadIntentConflict         = DefByModule(ModuleFileManager, http.StatusConflict, CaseFileManagerUploadIntentConflict, CodeFileManagerUploadIntentConflict, "upload intent conflict")
	ErrFileManagerValidationFailed             = DefByModule(ModuleFileManager, http.StatusUnprocessableEntity, CaseFileManagerValidationFailed, CodeFileManagerValidationFailed, "file manager validation failed")
	ErrFileManagerActionFailed                 = DefByModule(ModuleFileManager, http.StatusBadRequest, CaseFileManagerActionFailed, CodeFileManagerActionFailed, "file manager action failed")
	ErrFileManagerWOPIServiceUnavailable       = DefByModuleWithTitle(ModuleFileManager, http.StatusServiceUnavailable, CaseFileManagerWOPIServiceUnavailable, CodeFileManagerWOPIServiceUnavailable, "WOPI service unavailable", "wopi service is unavailable")
	ErrFileManagerWOPIInvalidFileID            = DefByModule(ModuleFileManager, http.StatusUnprocessableEntity, CaseFileManagerWOPIInvalidFileID, CodeFileManagerWOPIInvalidFileID, "wopi file id is invalid")
	ErrFileManagerWOPIInvalidToken             = DefByModule(ModuleFileManager, http.StatusUnauthorized, CaseFileManagerWOPIInvalidToken, CodeFileManagerWOPIInvalidToken, "wopi access token is invalid or expired")
	ErrFileManagerWOPIInvalidProof             = DefByModule(ModuleFileManager, http.StatusForbidden, CaseFileManagerWOPIInvalidProof, CodeFileManagerWOPIInvalidProof, "wopi proof is invalid")
	ErrFileManagerWOPIPermissionDenied         = DefByModule(ModuleFileManager, http.StatusForbidden, CaseFileManagerWOPIPermissionDenied, CodeFileManagerWOPIPermissionDenied, "wopi permission denied")
	ErrFileManagerWOPIFileNotFound             = DefByModule(ModuleFileManager, http.StatusNotFound, CaseFileManagerWOPIFileNotFound, CodeFileManagerWOPIFileNotFound, "wopi file not found")
	ErrFileManagerWOPILockConflict             = DefByModule(ModuleFileManager, http.StatusConflict, CaseFileManagerWOPILockConflict, CodeFileManagerWOPILockConflict, "wopi lock conflict")
	ErrFileManagerWOPIStaleTimestamp           = DefByModule(ModuleFileManager, http.StatusConflict, CaseFileManagerWOPIStaleTimestamp, CodeFileManagerWOPIStaleTimestamp, "wopi save timestamp is stale")
	ErrFileManagerWOPIValidationFailed         = DefByModule(ModuleFileManager, http.StatusUnprocessableEntity, CaseFileManagerWOPIValidationFailed, CodeFileManagerWOPIValidationFailed, "wopi validation failed")

	// OPC
	ErrOPCNotFound           = DefByModule(ModuleOPCData, http.StatusNotFound, CaseOPCNotFound, CodeOPCNotFound, "opc not found")
	ErrOPCRelationDelete     = DefByModule(ModuleOPCData, http.StatusConflict, CaseOPCRelationDelete, CodeOPCRelationDelete, "cannot delete opc due to active relations")
	ErrOPCInvalidPayload     = DefByModule(ModuleOPCData, http.StatusUnprocessableEntity, CaseOPCInvalidPayload, CodeOPCInvalidPayload, "invalid opc payload")
	ErrOPCInvalidJSON        = DefByModule(ModuleOPCData, http.StatusBadRequest, CaseOPCInvalidJSON, CodeOPCInvalidJSON, "invalid json payload")
	ErrOPCInvalidUUID        = DefByModule(ModuleOPCData, http.StatusUnprocessableEntity, CaseOPCInvalidUUID, CodeOPCInvalidUUID, "opc uuid is invalid")
	ErrOPCIDRequired         = DefByModule(ModuleOPCData, http.StatusUnprocessableEntity, CaseOPCIDRequired, CodeOPCIDRequired, "opc id is required")
	ErrOPCIDMismatch         = DefByModule(ModuleOPCData, http.StatusUnprocessableEntity, CaseOPCIDMismatch, CodeOPCIDMismatch, "opc id mismatch")
	ErrOPCAttributesRequired = DefByModule(ModuleOPCData, http.StatusUnprocessableEntity, CaseOPCAttributesRequired, CodeOPCAttributesRequired, "at least one opc attribute must be provided")
	ErrOPCTitleRequired      = DefByModule(ModuleOPCData, http.StatusUnprocessableEntity, CaseOPCTitleRequired, CodeOPCTitleRequired, "opc title is required")
	ErrOPCCreateFailed       = DefByModule(ModuleOPCData, http.StatusBadRequest, CaseOPCCreateFailed, CodeOPCCreateFailed, "failed to create opc")
	ErrOPCUpdateFailed       = DefByModule(ModuleOPCData, http.StatusBadRequest, CaseOPCUpdateFailed, CodeOPCUpdateFailed, "failed to update opc")
	ErrOPCDeleteFailed       = DefByModule(ModuleOPCData, http.StatusBadRequest, CaseOPCDeleteFailed, CodeOPCDeleteFailed, "failed to delete opc")
	ErrOPCListFailed         = DefByModule(ModuleOPCData, http.StatusBadRequest, CaseOPCListFailed, CodeOPCListFailed, "failed to list opc data")

	// Insurance Patient Data
	ErrInsurancePatientDataNotFound                 = DefByModule(ModuleInsurancePatientData, http.StatusNotFound, CaseInsurancePatientDataNotFound, CodeInsurancePatientDataNotFound, "insurance patient data not found")
	ErrInsurancePatientDataRelationDelete           = DefByModule(ModuleInsurancePatientData, http.StatusConflict, CaseInsurancePatientDataRelationDelete, CodeInsurancePatientDataRelationDelete, "cannot delete insurance patient data due to active relations")
	ErrInsurancePatientDataInvalidPayload           = DefByModule(ModuleInsurancePatientData, http.StatusUnprocessableEntity, CaseInsurancePatientDataInvalidPayload, CodeInsurancePatientDataInvalidPayload, "invalid insurance patient data payload")
	ErrInsurancePatientDataInvalidJSON              = DefByModule(ModuleInsurancePatientData, http.StatusBadRequest, CaseInsurancePatientDataInvalidJSON, CodeInsurancePatientDataInvalidJSON, "invalid json payload")
	ErrInsurancePatientDataInvalidUUID              = DefByModule(ModuleInsurancePatientData, http.StatusUnprocessableEntity, CaseInsurancePatientDataInvalidUUID, CodeInsurancePatientDataInvalidUUID, "insurance patient data uuid is invalid")
	ErrInsurancePatientDataIDRequired               = DefByModule(ModuleInsurancePatientData, http.StatusUnprocessableEntity, CaseInsurancePatientDataIDRequired, CodeInsurancePatientDataIDRequired, "insurance patient data id is required")
	ErrInsurancePatientDataIDMismatch               = DefByModule(ModuleInsurancePatientData, http.StatusUnprocessableEntity, CaseInsurancePatientDataIDMismatch, CodeInsurancePatientDataIDMismatch, "insurance patient data id mismatch")
	ErrInsurancePatientDataAttributesRequired       = DefByModule(ModuleInsurancePatientData, http.StatusUnprocessableEntity, CaseInsurancePatientDataAttributesRequired, CodeInsurancePatientDataAttributesRequired, "at least one insurance patient data attribute must be provided")
	ErrInsurancePatientDataHealthInsuranceIDInvalid = DefByModule(ModuleInsurancePatientData, http.StatusUnprocessableEntity, CaseInsurancePatientDataHealthInsuranceIDInvalid, CodeInsurancePatientDataHealthInsuranceIDInvalid, "health_insurance_companies_id is invalid")
	ErrInsurancePatientDataFederalStateIDInvalid    = DefByModule(ModuleInsurancePatientData, http.StatusUnprocessableEntity, CaseInsurancePatientDataFederalStateIDInvalid, CodeInsurancePatientDataFederalStateIDInvalid, "federal_state_id is invalid")
	ErrInsurancePatientDataCreateFailed             = DefByModule(ModuleInsurancePatientData, http.StatusBadRequest, CaseInsurancePatientDataCreateFailed, CodeInsurancePatientDataCreateFailed, "failed to create insurance patient data")
	ErrInsurancePatientDataUpdateFailed             = DefByModule(ModuleInsurancePatientData, http.StatusBadRequest, CaseInsurancePatientDataUpdateFailed, CodeInsurancePatientDataUpdateFailed, "failed to update insurance patient data")
	ErrInsurancePatientDataDeleteFailed             = DefByModule(ModuleInsurancePatientData, http.StatusBadRequest, CaseInsurancePatientDataDeleteFailed, CodeInsurancePatientDataDeleteFailed, "failed to delete insurance patient data")
	ErrInsurancePatientDataListFailed               = DefByModule(ModuleInsurancePatientData, http.StatusBadRequest, CaseInsurancePatientDataListFailed, CodeInsurancePatientDataListFailed, "failed to list insurance patient data")

	// Patient Data
	ErrPatientDataNotFound                      = DefByModule(ModulePatientData, http.StatusNotFound, CasePatientDataNotFound, CodePatientDataNotFound, "patient data not found")
	ErrPatientDataRelationDelete                = DefByModule(ModulePatientData, http.StatusConflict, CasePatientDataRelationDelete, CodePatientDataRelationDelete, "cannot delete patient data due to active relations")
	ErrPatientDataInvalidPayload                = DefByModule(ModulePatientData, http.StatusUnprocessableEntity, CasePatientDataInvalidPayload, CodePatientDataInvalidPayload, "invalid patient data payload")
	ErrPatientDataInvalidJSON                   = DefByModule(ModulePatientData, http.StatusBadRequest, CasePatientDataInvalidJSON, CodePatientDataInvalidJSON, "invalid json payload")
	ErrPatientDataInvalidUUID                   = DefByModule(ModulePatientData, http.StatusUnprocessableEntity, CasePatientDataInvalidUUID, CodePatientDataInvalidUUID, "patient data uuid is invalid")
	ErrPatientDataIDRequired                    = DefByModule(ModulePatientData, http.StatusUnprocessableEntity, CasePatientDataIDRequired, CodePatientDataIDRequired, "patient data id is required")
	ErrPatientDataIDMismatch                    = DefByModule(ModulePatientData, http.StatusUnprocessableEntity, CasePatientDataIDMismatch, CodePatientDataIDMismatch, "patient data id mismatch")
	ErrPatientDataAttributesRequired            = DefByModule(ModulePatientData, http.StatusUnprocessableEntity, CasePatientDataAttributesRequired, CodePatientDataAttributesRequired, "at least one patient data attribute must be provided")
	ErrPatientDataFamilyNameRequired            = DefByModule(ModulePatientData, http.StatusUnprocessableEntity, CasePatientDataFamilyNameRequired, CodePatientDataFamilyNameRequired, "family_name is required")
	ErrPatientDataFirstNameRequired             = DefByModule(ModulePatientData, http.StatusUnprocessableEntity, CasePatientDataFirstNameRequired, CodePatientDataFirstNameRequired, "first_name is required")
	ErrPatientDataBirthDateInvalid              = DefByModule(ModulePatientData, http.StatusUnprocessableEntity, CasePatientDataBirthDateInvalid, CodePatientDataBirthDateInvalid, "birth_date is invalid")
	ErrPatientDataGenderInvalid                 = DefByModule(ModulePatientData, http.StatusUnprocessableEntity, CasePatientDataGenderInvalid, CodePatientDataGenderInvalid, "gender is invalid")
	ErrPatientDataOPCIDInvalid                  = DefByModule(ModulePatientData, http.StatusUnprocessableEntity, CasePatientDataOPCIDInvalid, CodePatientDataOPCIDInvalid, "opc_id is invalid")
	ErrPatientDataInsurancePatientDataIDInvalid = DefByModule(ModulePatientData, http.StatusUnprocessableEntity, CasePatientDataInsurancePatientDataIDInvalid, CodePatientDataInsurancePatientDataIDInvalid, "insurance_patient_data_id is invalid")
	ErrPatientDataCreateFailed                  = DefByModule(ModulePatientData, http.StatusBadRequest, CasePatientDataCreateFailed, CodePatientDataCreateFailed, "failed to create patient data")
	ErrPatientDataUpdateFailed                  = DefByModule(ModulePatientData, http.StatusBadRequest, CasePatientDataUpdateFailed, CodePatientDataUpdateFailed, "failed to update patient data")
	ErrPatientDataDeleteFailed                  = DefByModule(ModulePatientData, http.StatusBadRequest, CasePatientDataDeleteFailed, CodePatientDataDeleteFailed, "failed to delete patient data")
	ErrPatientDataListFailed                    = DefByModule(ModulePatientData, http.StatusBadRequest, CasePatientDataListFailed, CodePatientDataListFailed, "failed to list patient data")

	// Role
	ErrRoleNotFound                 = DefByModule(ModuleRole, http.StatusNotFound, CaseRoleNotFound, CodeRoleNotFound, "role not found")
	ErrRolePermissionNotFound       = DefByModule(ModuleRole, http.StatusNotFound, CaseRolePermissionNotFound, CodeRolePermissionNotFound, "permission not found")
	ErrRoleRelationDelete           = DefByModule(ModuleRole, http.StatusConflict, CaseRoleRelationDelete, CodeRoleRelationDelete, "cannot delete role due to active relations")
	ErrRoleInvalidPayload           = DefByModule(ModuleRole, http.StatusUnprocessableEntity, CaseRoleInvalidPayload, CodeRoleInvalidPayload, "invalid role payload")
	ErrRoleInvalidJSON              = DefByModule(ModuleRole, http.StatusBadRequest, CaseRoleInvalidJSON, CodeRoleInvalidJSON, "invalid json payload")
	ErrRoleInvalidUUID              = DefByModule(ModuleRole, http.StatusUnprocessableEntity, CaseRoleInvalidUUID, CodeRoleInvalidUUID, "role uuid is invalid")
	ErrRoleInvalidPermissionUUID    = DefByModule(ModuleRole, http.StatusUnprocessableEntity, CaseRoleInvalidPermissionUUID, CodeRoleInvalidPermissionUUID, "permission uuid is invalid")
	ErrRoleIDRequired               = DefByModule(ModuleRole, http.StatusUnprocessableEntity, CaseRoleIDRequired, CodeRoleIDRequired, "role id is required")
	ErrRoleIDMismatch               = DefByModule(ModuleRole, http.StatusUnprocessableEntity, CaseRoleIDMismatch, CodeRoleIDMismatch, "role id mismatch")
	ErrRoleAttributesRequired       = DefByModule(ModuleRole, http.StatusUnprocessableEntity, CaseRoleAttributesRequired, CodeRoleAttributesRequired, "at least one role attribute must be provided")
	ErrRoleNameRequired             = DefByModule(ModuleRole, http.StatusUnprocessableEntity, CaseRoleNameRequired, CodeRoleNameRequired, "role name is required")
	ErrRolePermissionIDRequired     = DefByModule(ModuleRole, http.StatusUnprocessableEntity, CaseRolePermissionIDRequired, CodeRolePermissionIDRequired, "permission_id is required")
	ErrRolePermissionIDsEmpty       = DefByModule(ModuleRole, http.StatusUnprocessableEntity, CaseRolePermissionIDsEmpty, CodeRolePermissionIDsEmpty, "permission_ids must not be empty")
	ErrRoleCreateFailed             = DefByModule(ModuleRole, http.StatusBadRequest, CaseRoleCreateFailed, CodeRoleCreateFailed, "failed to create role")
	ErrRoleUpdateFailed             = DefByModule(ModuleRole, http.StatusBadRequest, CaseRoleUpdateFailed, CodeRoleUpdateFailed, "failed to update role")
	ErrRoleDeleteFailed             = DefByModule(ModuleRole, http.StatusBadRequest, CaseRoleDeleteFailed, CodeRoleDeleteFailed, "failed to delete role")
	ErrRoleAssignFailed             = DefByModule(ModuleRole, http.StatusBadRequest, CaseRoleAssignFailed, CodeRoleAssignFailed, "failed to assign permission")
	ErrRoleRemoveFailed             = DefByModule(ModuleRole, http.StatusBadRequest, CaseRoleRemoveFailed, CodeRoleRemoveFailed, "failed to remove permission")
	ErrRoleListFailed               = DefByModule(ModuleRole, http.StatusBadRequest, CaseRoleListFailed, CodeRoleListFailed, "failed to list role data")
	ErrRolePermissionListFailed     = DefByModule(ModuleRole, http.StatusBadRequest, CaseRolePermissionListFailed, CodeRolePermissionListFailed, "failed to list permission data")
	ErrRolePermissionUpdateFailed   = DefByModule(ModuleRole, http.StatusBadRequest, CaseRolePermissionUpdateFailed, CodeRolePermissionUpdateFailed, "failed to update permission")
	ErrRolePermissionRequiresPINReq = DefByModule(ModuleRole, http.StatusUnprocessableEntity, CaseRolePermissionRequiresPINReq, CodeRolePermissionRequiresPINReq, "requires_pin is required")

	// Flight Data
	ErrFlightDataNotFound                     = DefByModule(ModuleFlightData, http.StatusNotFound, CaseFlightDataNotFound, CodeFlightDataNotFound, "flight data not found")
	ErrFlightDataInvalidPayload               = DefByModule(ModuleFlightData, http.StatusUnprocessableEntity, CaseFlightDataInvalidPayload, CodeFlightDataInvalidPayload, "invalid flight data payload")
	ErrFlightDataInvalidJSON                  = DefByModule(ModuleFlightData, http.StatusBadRequest, CaseFlightDataInvalidJSON, CodeFlightDataInvalidJSON, "invalid json payload")
	ErrFlightDataInvalidPathUUID              = DefByModule(ModuleFlightData, http.StatusUnprocessableEntity, CaseFlightDataInvalidPathUUID, CodeFlightDataInvalidPathUUID, "path uuid is invalid")
	ErrFlightDataMissionIDRequired            = DefByModule(ModuleFlightData, http.StatusUnprocessableEntity, CaseFlightDataMissionIDRequired, CodeFlightDataMissionIDRequired, "mission_id is required")
	ErrFlightDataCoPilotIDRequired            = DefByModule(ModuleFlightData, http.StatusUnprocessableEntity, CaseFlightDataCoPilotIDRequired, CodeFlightDataCoPilotIDRequired, "co_pilot_id is required")
	ErrFlightDataPilotIDRequired              = ErrFlightDataCoPilotIDRequired
	ErrFlightDataMissionReference             = DefByModule(ModuleFlightData, http.StatusUnprocessableEntity, CaseFlightDataMissionReference, CodeFlightDataMissionReference, "mission reference is invalid")
	ErrFlightDataPilotReference               = DefByModule(ModuleFlightData, http.StatusUnprocessableEntity, CaseFlightDataPilotReference, CodeFlightDataPilotReference, "pilot reference is invalid")
	ErrFlightDataInvalidUUID                  = DefByModule(ModuleFlightData, http.StatusUnprocessableEntity, CaseFlightDataInvalidUUID, CodeFlightDataInvalidUUID, "uuid is invalid")
	ErrFlightDataInvalidRFC3339               = DefByModule(ModuleFlightData, http.StatusUnprocessableEntity, CaseFlightDataInvalidRFC3339, CodeFlightDataInvalidRFC3339, "datetime must be RFC3339")
	ErrFlightDataOriginLocationReference      = DefByModule(ModuleFlightData, http.StatusUnprocessableEntity, CaseFlightDataOriginLocationReference, CodeFlightDataOriginLocationReference, "origin location reference is invalid")
	ErrFlightDataDestinationLocationReference = DefByModule(ModuleFlightData, http.StatusUnprocessableEntity, CaseFlightDataDestinationLocationReference, CodeFlightDataDestinationLocationReference, "destination location reference is invalid")
	ErrFlightDataFacilityReference            = DefByModule(ModuleFlightData, http.StatusUnprocessableEntity, CaseFlightDataFacilityReference, CodeFlightDataFacilityReference, "facility reference is invalid")
	ErrFlightDataRequired                     = DefByModule(ModuleFlightData, http.StatusBadRequest, CaseFlightDataRequired, CodeFlightDataRequired, "required flight data is missing")
	ErrFlightDataCreateFailed                 = DefByModule(ModuleFlightData, http.StatusBadRequest, CaseFlightDataCreateFailed, CodeFlightDataCreateFailed, "failed to create flight data")
	ErrFlightDataGetFailed                    = DefByModule(ModuleFlightData, http.StatusBadRequest, CaseFlightDataGetFailed, CodeFlightDataGetFailed, "failed to get flight data")
	ErrFlightDataAfterFlightIncomplete        = DefByModule(ModuleFlightData, http.StatusUnprocessableEntity, CaseFlightDataAfterFlightIncomplete, CodeFlightDataAfterFlightIncomplete, "cannot submit after-flight: flight data is incomplete")
	ErrFlightDataLockedAfterFlightInspection  = DefByModule(ModuleFlightData, http.StatusLocked, CaseFlightDataAfterFlightLocked, CodeFlightDataAfterFlightLocked, "flight data is locked because after flight inspection already exists")
	ErrFlightDataCreateBlocked                = DefByModule(ModuleFlightData, http.StatusConflict, "18", "FLIGHT_DATA_CREATE_BLOCKED", "flight data cannot be created because fm report already exists for this flight")
	ErrFlightDataLocked                       = DefByModule(ModuleFlightData, http.StatusLocked, "19", "FLIGHT_DATA_LOCKED", "flight data is locked because fm report is completed")

	// Air Rescuer Checklist
	ErrAirRescuerChecklistNotFound         = DefByModule(ModuleAirRescuerChecklist, http.StatusNotFound, CaseAirRescuerChecklistNotFound, CodeAirRescuerChecklistNotFound, "air rescuer checklist not found")
	ErrAirRescuerChecklistItemNotFound     = DefByModule(ModuleAirRescuerChecklist, http.StatusNotFound, CaseAirRescuerChecklistItemNotFound, CodeAirRescuerChecklistItemNotFound, "air rescuer checklist item not found")
	ErrAirRescuerChecklistInvalidPayload   = DefByModule(ModuleAirRescuerChecklist, http.StatusUnprocessableEntity, CaseAirRescuerChecklistInvalidPayload, CodeAirRescuerChecklistInvalidPayload, "invalid air rescuer checklist payload")
	ErrAirRescuerChecklistInvalidJSON      = DefByModule(ModuleAirRescuerChecklist, http.StatusBadRequest, CaseAirRescuerChecklistInvalidJSON, CodeAirRescuerChecklistInvalidJSON, "invalid json payload")
	ErrAirRescuerChecklistInvalidUUID      = DefByModule(ModuleAirRescuerChecklist, http.StatusUnprocessableEntity, CaseAirRescuerChecklistInvalidUUID, CodeAirRescuerChecklistInvalidUUID, "air rescuer checklist uuid is invalid")
	ErrAirRescuerChecklistIDMismatch       = DefByModule(ModuleAirRescuerChecklist, http.StatusUnprocessableEntity, CaseAirRescuerChecklistIDMismatch, CodeAirRescuerChecklistIDMismatch, "id does not match path uuid")
	ErrAirRescuerChecklistScopeInvalid     = DefByModule(ModuleAirRescuerChecklist, http.StatusUnprocessableEntity, CaseAirRescuerChecklistScopeInvalid, CodeAirRescuerChecklistScopeInvalid, "scope_code is invalid")
	ErrAirRescuerChecklistScopeRequired    = DefByModule(ModuleAirRescuerChecklist, http.StatusUnprocessableEntity, CaseAirRescuerChecklistScopeRequired, CodeAirRescuerChecklistScopeRequired, "scope_code is required")
	ErrAirRescuerChecklistTitleRequired    = DefByModule(ModuleAirRescuerChecklist, http.StatusUnprocessableEntity, CaseAirRescuerChecklistTitleRequired, CodeAirRescuerChecklistTitleRequired, "title is required")
	ErrAirRescuerChecklistNameRequired     = DefByModule(ModuleAirRescuerChecklist, http.StatusUnprocessableEntity, CaseAirRescuerChecklistNameRequired, CodeAirRescuerChecklistNameRequired, "name is required")
	ErrAirRescuerChecklistBaseNotFound     = DefByModule(ModuleAirRescuerChecklist, http.StatusNotFound, CaseAirRescuerChecklistBaseNotFound, CodeAirRescuerChecklistBaseNotFound, "base not found")
	ErrAirRescuerChecklistCreateFailed     = DefByModule(ModuleAirRescuerChecklist, http.StatusBadRequest, CaseAirRescuerChecklistCreateFailed, CodeAirRescuerChecklistCreateFailed, "failed to create air rescuer checklist")
	ErrAirRescuerChecklistUpdateFailed     = DefByModule(ModuleAirRescuerChecklist, http.StatusBadRequest, CaseAirRescuerChecklistUpdateFailed, CodeAirRescuerChecklistUpdateFailed, "failed to update air rescuer checklist")
	ErrAirRescuerChecklistDeleteFailed     = DefByModule(ModuleAirRescuerChecklist, http.StatusBadRequest, CaseAirRescuerChecklistDeleteFailed, CodeAirRescuerChecklistDeleteFailed, "failed to delete air rescuer checklist")
	ErrAirRescuerChecklistListFailed       = DefByModule(ModuleAirRescuerChecklist, http.StatusBadRequest, CaseAirRescuerChecklistListFailed, CodeAirRescuerChecklistListFailed, "failed to list air rescuer checklist")
	ErrAirRescuerChecklistReorderFailed    = DefByModule(ModuleAirRescuerChecklist, http.StatusBadRequest, CaseAirRescuerChecklistReorderFailed, CodeAirRescuerChecklistReorderFailed, "failed to reorder air rescuer checklist items")
	ErrAirRescuerChecklistValidationFailed = DefByModule(ModuleAirRescuerChecklist, http.StatusUnprocessableEntity, CaseAirRescuerChecklistValidationFailed, CodeAirRescuerChecklistValidationFailed, "air rescuer checklist validation failed")

	// Takeover
	ErrTakeoverNotFound           = DefByModule(ModuleTakeover, http.StatusNotFound, CaseTakeoverNotFound, CodeTakeoverNotFound, "takeover not found")
	ErrTakeoverInvalidPayload     = DefByModule(ModuleTakeover, http.StatusUnprocessableEntity, CaseTakeoverInvalidPayload, CodeTakeoverInvalidPayload, "invalid takeover payload")
	ErrTakeoverInvalidJSON        = DefByModule(ModuleTakeover, http.StatusBadRequest, CaseTakeoverInvalidJSON, CodeTakeoverInvalidJSON, "invalid json payload")
	ErrTakeoverInvalidUUID        = DefByModule(ModuleTakeover, http.StatusUnprocessableEntity, CaseTakeoverInvalidUUID, CodeTakeoverInvalidUUID, "takeover uuid is invalid")
	ErrTakeoverIDRequired         = DefByModule(ModuleTakeover, http.StatusUnprocessableEntity, CaseTakeoverIDRequired, CodeTakeoverIDRequired, "id is required")
	ErrTakeoverIDMismatch         = DefByModule(ModuleTakeover, http.StatusUnprocessableEntity, CaseTakeoverIDMismatch, CodeTakeoverIDMismatch, "id does not match path uuid")
	ErrTakeoverFileSectionInvalid = DefByModule(ModuleTakeover, http.StatusUnprocessableEntity, CaseTakeoverFileSectionInvalid, CodeTakeoverFileSectionInvalid, "helicopter_file_id does not belong to selected helicopter/section")
	ErrTakeoverCreateFailed       = DefByModule(ModuleTakeover, http.StatusBadRequest, CaseTakeoverCreateFailed, CodeTakeoverCreateFailed, "failed to create takeover")
	ErrTakeoverUpdateFailed       = DefByModule(ModuleTakeover, http.StatusBadRequest, CaseTakeoverUpdateFailed, CodeTakeoverUpdateFailed, "failed to update takeover")
	ErrTakeoverDeleteFailed       = DefByModule(ModuleTakeover, http.StatusBadRequest, CaseTakeoverDeleteFailed, CodeTakeoverDeleteFailed, "failed to delete takeover")
	ErrTakeoverGetFailed          = DefByModule(ModuleTakeover, http.StatusBadRequest, CaseTakeoverGetFailed, CodeTakeoverGetFailed, "failed to get takeover")
	ErrTakeoverListFailed         = DefByModule(ModuleTakeover, http.StatusBadRequest, CaseTakeoverListFailed, CodeTakeoverListFailed, "failed to list takeover data")
	ErrTakeoverHelicopterInUse    = DefByModule(ModuleTakeover, http.StatusConflict, CaseTakeoverHelicopterInUse, CodeTakeoverHelicopterInUse, "helicopter is already booked and cannot be used")
	ErrTakeoverHelicopterAOG      = DefByModule(ModuleTakeover, http.StatusConflict, CaseTakeoverHelicopterAOG, CodeTakeoverHelicopterAOG, "helicopter is AOG (grounded) and cannot be used")
	ErrTakeoverHelicopterMCF      = DefByModule(ModuleTakeover, http.StatusConflict, CaseTakeoverHelicopterMCF, CodeTakeoverHelicopterMCF, "helicopter is in MCF and cannot be used")

	// Fleet Status
	ErrFleetStatusNotFound           = DefByModule(ModuleFleetStatus, http.StatusNotFound, CaseFleetStatusNotFound, CodeFleetStatusNotFound, "fleet status not found")
	ErrFleetStatusInvalidPayload     = DefByModule(ModuleFleetStatus, http.StatusUnprocessableEntity, CaseFleetStatusInvalidPayload, CodeFleetStatusInvalidPayload, "invalid fleet status payload")
	ErrFleetStatusInvalidJSON        = DefByModule(ModuleFleetStatus, http.StatusBadRequest, CaseFleetStatusInvalidJSON, CodeFleetStatusInvalidJSON, "invalid json payload")
	ErrFleetStatusInvalidID          = DefByModule(ModuleFleetStatus, http.StatusUnprocessableEntity, CaseFleetStatusInvalidID, CodeFleetStatusInvalidID, "fleet status id is invalid")
	ErrFleetStatusIDRequired         = DefByModule(ModuleFleetStatus, http.StatusUnprocessableEntity, CaseFleetStatusIDRequired, CodeFleetStatusIDRequired, "id is required")
	ErrFleetStatusIDMismatch         = DefByModule(ModuleFleetStatus, http.StatusUnprocessableEntity, CaseFleetStatusIDMismatch, CodeFleetStatusIDMismatch, "id does not match path id")
	ErrFleetStatusHelicopterRequired = DefByModule(ModuleFleetStatus, http.StatusUnprocessableEntity, CaseFleetStatusHelicopterRequired, CodeFleetStatusHelicopterRequired, "helicopter_id is required")
	ErrFleetStatusHelicopterInvalid  = DefByModule(ModuleFleetStatus, http.StatusUnprocessableEntity, CaseFleetStatusHelicopterInvalid, CodeFleetStatusHelicopterInvalid, "referenced helicopter does not exist")
	ErrFleetStatusDuplicate          = DefByModule(ModuleFleetStatus, http.StatusConflict, CaseFleetStatusDuplicate, CodeFleetStatusDuplicate, "fleet status already exists")
	ErrFleetStatusRelationDelete     = DefByModule(ModuleFleetStatus, http.StatusConflict, CaseFleetStatusRelationDelete, CodeFleetStatusRelationDelete, "cannot delete fleet status due to active relations")
	// Deprecated: 400 is wrong for unexpected service/DB failures — service errors now
	// go through writeFleetStatusServiceError (500 fallback). Do not use as a new fallback.
	// TODO: remove these from the catalog in a separate cleanup.
	ErrFleetStatusCreateFailed       = DefByModule(ModuleFleetStatus, http.StatusBadRequest, CaseFleetStatusCreateFailed, CodeFleetStatusCreateFailed, "failed to create fleet status")
	ErrFleetStatusUpdateFailed       = DefByModule(ModuleFleetStatus, http.StatusBadRequest, CaseFleetStatusUpdateFailed, CodeFleetStatusUpdateFailed, "failed to update fleet status")
	ErrFleetStatusDeleteFailed       = DefByModule(ModuleFleetStatus, http.StatusBadRequest, CaseFleetStatusDeleteFailed, CodeFleetStatusDeleteFailed, "failed to delete fleet status")
	ErrFleetStatusListFailed         = DefByModule(ModuleFleetStatus, http.StatusBadRequest, CaseFleetStatusListFailed, CodeFleetStatusListFailed, "failed to list fleet status data")
	ErrFleetStatusMarkServicedFailed = DefByModule(ModuleFleetStatus, http.StatusBadRequest, CaseFleetStatusMarkServicedFailed, CodeFleetStatusMarkServicedFailed, "failed to mark fleet status serviced")

	// Fleet Status File (upload + create)
	ErrFleetStatusFileInvalidJSON         = DefByModule(ModuleFleetStatus, http.StatusBadRequest, CaseFleetStatusFileInvalidJSON, CodeFleetStatusFileInvalidJSON, "invalid json payload")
	ErrFleetStatusFileInvalidPayload      = DefByModule(ModuleFleetStatus, http.StatusUnprocessableEntity, CaseFleetStatusFileInvalidPayload, CodeFleetStatusFileInvalidPayload, "invalid fleet status file payload")
	ErrFleetStatusFileUploadIntentInvalid = DefByModule(ModuleFleetStatus, http.StatusConflict, CaseFleetStatusFileUploadIntentInvalid, CodeFleetStatusFileUploadIntentInvalid, "upload intent is invalid, expired, or already used")
	ErrFleetStatusFileStorageUnavailable  = DefByModule(ModuleFleetStatus, http.StatusServiceUnavailable, CaseFleetStatusFileStorageUnavailable, CodeFleetStatusFileStorageUnavailable, "file storage is unavailable")
	ErrFleetStatusFileFailed              = DefByModule(ModuleFleetStatus, http.StatusBadRequest, CaseFleetStatusFileFailed, CodeFleetStatusFileFailed, "failed to process fleet status file")

	// Complaint
	ErrComplaintNotFound            = DefByModule(ModuleComplaint, http.StatusNotFound, "01", CodeComplaintNotFound, "complaint not found")
	ErrComplaintInvalidPayload      = DefByModule(ModuleComplaint, http.StatusUnprocessableEntity, "02", CodeComplaintInvalidPayload, "invalid complaint payload")
	ErrComplaintInvalidJSON         = DefByModule(ModuleComplaint, http.StatusBadRequest, "03", CodeComplaintInvalidJSON, "invalid json payload")
	ErrComplaintInvalidUUID         = DefByModule(ModuleComplaint, http.StatusUnprocessableEntity, "04", CodeComplaintInvalidUUID, "complaint uuid is invalid")
	ErrComplaintIDRequired          = DefByModule(ModuleComplaint, http.StatusUnprocessableEntity, "05", CodeComplaintIDRequired, "complaint id is required")
	ErrComplaintIDMismatch          = DefByModule(ModuleComplaint, http.StatusUnprocessableEntity, "06", CodeComplaintIDMismatch, "complaint id does not match path id")
	ErrComplaintCreateFailed        = DefByModule(ModuleComplaint, http.StatusBadRequest, "07", CodeComplaintCreateFailed, "failed to create complaint")
	ErrComplaintUpdateFailed        = DefByModule(ModuleComplaint, http.StatusBadRequest, "08", CodeComplaintUpdateFailed, "failed to update complaint")
	ErrComplaintDeleteFailed        = DefByModule(ModuleComplaint, http.StatusBadRequest, "09", CodeComplaintDeleteFailed, "failed to delete complaint")
	ErrComplaintListFailed          = DefByModule(ModuleComplaint, http.StatusBadRequest, "10", CodeComplaintListFailed, "failed to list complaint data")
	ErrComplaintGroupedListFailed   = DefByModule(ModuleComplaint, http.StatusBadRequest, "11", CodeComplaintGroupedListFailed, "failed to list grouped complaint data")
	ErrComplaintRelationDelete      = DefByModule(ModuleComplaint, http.StatusConflict, "12", CodeComplaintRelationDelete, "cannot delete complaint due to active relations")
	ErrComplaintInvalidHelicopterID = DefByModule(ModuleComplaint, http.StatusUnprocessableEntity, "13", CodeComplaintInvalidHelicopterID, "helicopter id is invalid")
	ErrComplaintMELRequired         = DefByModuleWithTitle(ModuleComplaint, http.StatusUnprocessableEntity, "15", CodeComplaintMELRequired, "Classify the MEL (Non-MEL or MEL A/B/C/D) before recording the action", "mel_severity must be classified before recording action taken (0=Non-MEL, 1=A, 2=B, 3=C, 4=D)")
	ErrComplaintActionSignedLocked  = DefByModuleWithTitle(ModuleComplaint, http.StatusConflict, "16", CodeComplaintActionSignedLocked, "Action already signed off — cannot clear", "cannot clear a signed-off corrective action; unsign it first")

	ErrEASAReleaseNotFound          = DefByModule(ModuleEASARelease, http.StatusNotFound, "01", CodeEASAReleaseNotFound, "easa release not found")
	ErrEASAReleaseInvalidJSON       = DefByModule(ModuleEASARelease, http.StatusBadRequest, "02", CodeEASAReleaseInvalidJSON, "invalid json payload")
	ErrEASAReleaseInvalidUUID       = DefByModule(ModuleEASARelease, http.StatusUnprocessableEntity, "03", CodeEASAReleaseInvalidUUID, "easa release uuid is invalid")
	ErrEASAReleaseInvalidPayload    = DefByModule(ModuleEASARelease, http.StatusUnprocessableEntity, "04", CodeEASAReleaseInvalidPayload, "invalid easa release payload")
	ErrEASAReleaseCreateFailed      = DefByModule(ModuleEASARelease, http.StatusBadRequest, "05", CodeEASAReleaseCreateFailed, "failed to create easa release")
	ErrEASAReleaseUpdateFailed      = DefByModule(ModuleEASARelease, http.StatusBadRequest, "06", CodeEASAReleaseUpdateFailed, "failed to update easa release")
	ErrEASAReleaseDeleteFailed      = DefByModule(ModuleEASARelease, http.StatusBadRequest, "07", CodeEASAReleaseDeleteFailed, "failed to delete easa release")
	ErrEASAReleaseListFailed        = DefByModule(ModuleEASARelease, http.StatusBadRequest, "08", CodeEASAReleaseListFailed, "failed to list easa release data")
	ErrEASAReleaseSignFailed        = DefByModule(ModuleEASARelease, http.StatusBadRequest, "09", CodeEASAReleaseSignFailed, "failed to sign easa release")
	ErrEASAReleaseAlreadySigned     = DefByModule(ModuleEASARelease, http.StatusConflict, "10", CodeEASAReleaseAlreadySigned, "easa release already signed")
	ErrEASAReleaseIncompleteForSign = DefByModuleWithTitle(ModuleEASARelease, http.StatusUnprocessableEntity, "12", CodeEASAReleaseIncompleteForSign, "Fill all required fields before signing the release", "cannot sign release: required fields are incomplete")
	ErrEASAReleaseSignoffRequired   = DefByModuleWithTitle(ModuleEASARelease, http.StatusUnprocessableEntity, "13", CodeEASAReleaseSignoffRequired, "Sign off the corrective action before releasing to service", "cannot create release: the corrective-action sign-off is missing")

	ErrActionSignoffNotFound          = DefByModule(ModuleActionSignoff, http.StatusNotFound, "01", CodeActionSignoffNotFound, "action sign-off not found")
	ErrActionSignoffInvalidUUID       = DefByModule(ModuleActionSignoff, http.StatusUnprocessableEntity, "02", CodeActionSignoffInvalidUUID, "action sign-off helicopter id is invalid")
	ErrActionSignoffInvalidJSON       = DefByModule(ModuleActionSignoff, http.StatusBadRequest, "03", CodeActionSignoffInvalidJSON, "invalid json payload")
	ErrActionSignoffSignFailed        = DefByModule(ModuleActionSignoff, http.StatusBadRequest, "04", CodeActionSignoffSignFailed, "failed to sign action sign-off")
	ErrActionSignoffUnsignFailed      = DefByModule(ModuleActionSignoff, http.StatusBadRequest, "05", CodeActionSignoffUnsignFailed, "failed to unsign action sign-off")
	ErrActionSignoffComplaintNotFound = DefByModule(ModuleActionSignoff, http.StatusNotFound, "06", CodeActionSignoffComplaintNotFound, "complaint not found for action sign-off")
	ErrActionSignoffActionRequired    = DefByModuleWithTitle(ModuleActionSignoff, http.StatusUnprocessableEntity, "07", CodeActionSignoffActionRequired, "Record the corrective action first", "action_taken must be recorded on the complaint before it can be signed off")

	ErrMCFNotFound       = DefByModule(ModuleMCF, http.StatusNotFound, "01", CodeMCFNotFound, "maintenance check flight not found")
	ErrMCFInvalidJSON    = DefByModule(ModuleMCF, http.StatusBadRequest, "02", CodeMCFInvalidJSON, "invalid json payload")
	ErrMCFInvalidUUID    = DefByModule(ModuleMCF, http.StatusUnprocessableEntity, "03", CodeMCFInvalidUUID, "mcf uuid is invalid")
	ErrMCFInvalidPayload = DefByModule(ModuleMCF, http.StatusUnprocessableEntity, "04", CodeMCFInvalidPayload, "invalid mcf payload")
	ErrMCFCreateFailed   = DefByModule(ModuleMCF, http.StatusBadRequest, "05", CodeMCFCreateFailed, "failed to create mcf")
	ErrMCFCompleteFailed = DefByModule(ModuleMCF, http.StatusBadRequest, "06", CodeMCFCompleteFailed, "failed to complete mcf")
	ErrMCFListFailed     = DefByModule(ModuleMCF, http.StatusBadRequest, "08", CodeMCFListFailed, "failed to list mcf data")
	ErrMCFNoOpen         = DefByModule(ModuleMCF, http.StatusConflict, "09", CodeMCFNoOpen, "helicopter has no open mcf to complete")
	ErrMCFHelicopterHasOpen = DefByModuleWithTitle(ModuleMCF, http.StatusConflict, "10", CodeMCFHelicopterHasOpen, "Helicopter already has an open MCF", "helicopter already has an open (unsigned) mcf; complete it first")

	// Mission
	ErrMissionNotFound                    = DefByModule(ModuleMissionOps, http.StatusNotFound, CaseMissionNotFound, CodeMissionNotFound, "mission not found")
	ErrMissionInvalidPayload              = DefByModule(ModuleMissionOps, http.StatusUnprocessableEntity, CaseMissionInvalidPayload, CodeMissionInvalidPayload, "invalid mission payload")
	ErrMissionInvalidJSON                 = DefByModule(ModuleMissionOps, http.StatusBadRequest, CaseMissionInvalidJSON, CodeMissionInvalidJSON, "invalid json payload")
	ErrMissionInvalidFlightUUID           = DefByModule(ModuleMissionOps, http.StatusUnprocessableEntity, CaseMissionInvalidFlightUUID, CodeMissionInvalidFlightUUID, "flight uuid is invalid")
	ErrMissionInvalidMissionUUID          = DefByModule(ModuleMissionOps, http.StatusUnprocessableEntity, CaseMissionInvalidMissionUUID, CodeMissionInvalidMissionUUID, "mission uuid is invalid")
	ErrMissionFlightIDRequired            = DefByModule(ModuleMissionOps, http.StatusUnprocessableEntity, CaseMissionFlightIDRequired, CodeMissionFlightIDRequired, "flight_id is required")
	ErrMissionMissionIDRequired           = DefByModule(ModuleMissionOps, http.StatusUnprocessableEntity, CaseMissionMissionIDRequired, CodeMissionMissionIDRequired, "mission_id is required")
	ErrMissionTypeInvalid                 = DefByModule(ModuleMissionOps, http.StatusUnprocessableEntity, CaseMissionTypeInvalid, CodeMissionTypeInvalid, "mission type is invalid")
	ErrMissionSubtypeRequired             = DefByModule(ModuleMissionOps, http.StatusUnprocessableEntity, CaseMissionSubtypeRequired, CodeMissionSubtypeRequired, "subtype_id is required")
	ErrMissionSubtypeInvalid              = DefByModule(ModuleMissionOps, http.StatusUnprocessableEntity, CaseMissionSubtypeInvalid, CodeMissionSubtypeInvalid, "subtype_id is invalid")
	ErrMissionSubtypeForbidden            = DefByModule(ModuleMissionOps, http.StatusUnprocessableEntity, CaseMissionSubtypeForbidden, CodeMissionSubtypeForbidden, "subtype_id is forbidden")
	ErrMissionDuplicateFlight             = DefByModule(ModuleMissionOps, http.StatusConflict, CaseMissionDuplicateFlight, CodeMissionDuplicateFlight, "mission for this flight already exists")
	ErrMissionCreateFailed                = DefByModule(ModuleMissionOps, http.StatusBadRequest, CaseMissionCreateFailed, CodeMissionCreateFailed, "failed to create mission")
	ErrMissionUpdateFailed                = DefByModule(ModuleMissionOps, http.StatusBadRequest, CaseMissionUpdateFailed, CodeMissionUpdateFailed, "failed to update mission")
	ErrMissionDeleteFailed                = DefByModule(ModuleMissionOps, http.StatusBadRequest, CaseMissionDeleteFailed, CodeMissionDeleteFailed, "failed to delete mission")
	ErrMissionGetFailed                   = DefByModule(ModuleMissionOps, http.StatusBadRequest, CaseMissionGetFailed, CodeMissionGetFailed, "failed to get mission")
	ErrMissionListFailed                  = DefByModule(ModuleMissionOps, http.StatusBadRequest, CaseMissionListFailed, CodeMissionListFailed, "failed to list mission data")
	ErrMissionLockedAfterFlightInspection = DefByModule(ModuleMissionOps, http.StatusLocked, CaseMissionAfterFlightLocked, CodeMissionAfterFlightLocked, "mission is locked because after flight inspection already exists")
	ErrMissionFileInvalidJSON             = DefByModule(ModuleMissionOps, http.StatusBadRequest, CaseMissionFileInvalidJSON, CodeMissionFileInvalidJSON, "invalid mission file json payload")
	ErrMissionFileValidation              = DefByModule(ModuleMissionOps, http.StatusUnprocessableEntity, CaseMissionFileValidation, CodeMissionFileValidation, "mission file validation failed")
	ErrMissionFileInvalidMissionUUID      = DefByModule(ModuleMissionOps, http.StatusUnprocessableEntity, CaseMissionFileInvalidMissionUUID, CodeMissionFileInvalidMissionUUID, "mission file mission_uuid is invalid")
	ErrMissionFileMissionNotFound         = DefByModule(ModuleMissionOps, http.StatusNotFound, CaseMissionFileMissionNotFound, CodeMissionFileMissionNotFound, "mission for the file was not found")
	ErrMissionFileServiceUnavailable      = DefByModule(ModuleMissionOps, http.StatusServiceUnavailable, CaseMissionFileServiceUnavailable, CodeMissionFileServiceUnavailable, "mission service is unavailable for file linking")
	ErrMissionFileActionFailed            = DefByModule(ModuleMissionOps, http.StatusBadRequest, CaseMissionFileActionFailed, CodeMissionFileActionFailed, "failed to create or attach mission file")

	// HEMS Operation
	ErrHEMSOperationNotFound                 = DefByModule(ModuleMissionOps, http.StatusNotFound, CaseHEMSOperationNotFound, CodeHEMSOperationNotFound, "hems operation not found")
	ErrHEMSOperationInvalidPayload           = DefByModule(ModuleMissionOps, http.StatusUnprocessableEntity, CaseHEMSOperationInvalidPayload, CodeHEMSOperationInvalidPayload, "invalid hems operation payload")
	ErrHEMSOperationInvalidJSON              = DefByModule(ModuleMissionOps, http.StatusBadRequest, CaseHEMSOperationInvalidJSON, CodeHEMSOperationInvalidJSON, "invalid json payload")
	ErrHEMSOperationInvalidUUID              = DefByModule(ModuleMissionOps, http.StatusUnprocessableEntity, CaseHEMSOperationInvalidUUID, CodeHEMSOperationInvalidUUID, "hems operation uuid is invalid")
	ErrHEMSOperationAttributesRequired       = DefByModule(ModuleMissionOps, http.StatusUnprocessableEntity, CaseHEMSOperationAttributesRequired, CodeHEMSOperationAttributesRequired, "at least one hems operation attribute must be provided")
	ErrHEMSOperationDateInvalidRFC3339       = DefByModule(ModuleMissionOps, http.StatusUnprocessableEntity, CaseHEMSOperationDateInvalidRFC3339, CodeHEMSOperationDateInvalidRFC3339, "date must be in RFC3339 format")
	ErrHEMSOperationRelationReferenceInvalid = DefByModule(ModuleMissionOps, http.StatusUnprocessableEntity, CaseHEMSOperationRelationReferenceInvalid, CodeHEMSOperationRelationReferenceInvalid, "relation reference is invalid")
	ErrHEMSOperationCreateFailed             = DefByModule(ModuleMissionOps, http.StatusBadRequest, CaseHEMSOperationCreateFailed, CodeHEMSOperationCreateFailed, "failed to create hems operation")
	ErrHEMSOperationUpdateFailed             = DefByModule(ModuleMissionOps, http.StatusBadRequest, CaseHEMSOperationUpdateFailed, CodeHEMSOperationUpdateFailed, "failed to update hems operation")
	ErrHEMSOperationDeleteFailed             = DefByModule(ModuleMissionOps, http.StatusBadRequest, CaseHEMSOperationDeleteFailed, CodeHEMSOperationDeleteFailed, "failed to delete hems operation")
	ErrHEMSOperationListFailed               = DefByModule(ModuleMissionOps, http.StatusBadRequest, CaseHEMSOperationListFailed, CodeHEMSOperationListFailed, "failed to list hems operation")
	ErrForcesPresentNotFound                 = DefByModule(ModuleMissionOps, http.StatusNotFound, CaseForcesPresentNotFound, CodeForcesPresentNotFound, "forces present not found")
	ErrForcesPresentRelationDelete           = DefByModule(ModuleMissionOps, http.StatusConflict, CaseForcesPresentRelationDelete, CodeForcesPresentRelationDelete, "cannot delete forces present due to active relations")
	ErrForcesPresentInvalidPayload           = DefByModule(ModuleMissionOps, http.StatusUnprocessableEntity, CaseForcesPresentInvalidPayload, CodeForcesPresentInvalidPayload, "invalid forces present payload")
	ErrForcesPresentInvalidJSON              = DefByModule(ModuleMissionOps, http.StatusBadRequest, CaseForcesPresentInvalidJSON, CodeForcesPresentInvalidJSON, "invalid json payload")
	ErrForcesPresentInvalidUUID              = DefByModule(ModuleMissionOps, http.StatusUnprocessableEntity, CaseForcesPresentInvalidUUID, CodeForcesPresentInvalidUUID, "forces present uuid is invalid")
	ErrForcesPresentIDRequired               = DefByModule(ModuleMissionOps, http.StatusUnprocessableEntity, CaseForcesPresentIDRequired, CodeForcesPresentIDRequired, "forces present id is required")
	ErrForcesPresentIDMismatch               = DefByModule(ModuleMissionOps, http.StatusUnprocessableEntity, CaseForcesPresentIDMismatch, CodeForcesPresentIDMismatch, "forces present id mismatch")
	ErrForcesPresentAttributesRequired       = DefByModule(ModuleMissionOps, http.StatusUnprocessableEntity, CaseForcesPresentAttributesRequired, CodeForcesPresentAttributesRequired, "at least one forces present attribute must be provided")
	ErrForcesPresentNameRequired             = DefByModule(ModuleMissionOps, http.StatusUnprocessableEntity, CaseForcesPresentNameRequired, CodeForcesPresentNameRequired, "forces present name is required")
	ErrForcesPresentCreateFailed             = DefByModule(ModuleMissionOps, http.StatusBadRequest, CaseForcesPresentCreateFailed, CodeForcesPresentCreateFailed, "failed to create forces present")
	ErrForcesPresentUpdateFailed             = DefByModule(ModuleMissionOps, http.StatusBadRequest, CaseForcesPresentUpdateFailed, CodeForcesPresentUpdateFailed, "failed to update forces present")
	ErrForcesPresentDeleteFailed             = DefByModule(ModuleMissionOps, http.StatusBadRequest, CaseForcesPresentDeleteFailed, CodeForcesPresentDeleteFailed, "failed to delete forces present")
	ErrForcesPresentListFailed               = DefByModule(ModuleMissionOps, http.StatusBadRequest, CaseForcesPresentListFailed, CodeForcesPresentListFailed, "failed to list forces present data")

	// Contact
	ErrContactNotFound                          = DefByModule(ModuleContact, http.StatusNotFound, CaseContactNotFound, CodeContactNotFound, "contact not found")
	ErrContactInvalidPayload                    = DefByModule(ModuleContact, http.StatusUnprocessableEntity, CaseContactInvalidPayload, CodeContactInvalidPayload, "invalid contact payload")
	ErrContactInvalidJSON                       = DefByModule(ModuleContact, http.StatusBadRequest, CaseContactInvalidJSON, CodeContactInvalidJSON, "invalid json payload")
	ErrContactInvalidUserID                     = DefByModule(ModuleContact, http.StatusUnprocessableEntity, CaseContactInvalidUserID, CodeContactInvalidUserID, "user_id is invalid uuid")
	ErrContactValidationFailed                  = DefByModule(ModuleContact, http.StatusUnprocessableEntity, CaseContactValidationFailed, CodeContactValidationFailed, "contact validation failed")
	ErrContactCreateFailed                      = DefByModule(ModuleContact, http.StatusBadRequest, CaseContactCreateFailed, CodeContactCreateFailed, "failed to create contact")
	ErrContactGetFailed                         = DefByModule(ModuleContact, http.StatusBadRequest, CaseContactGetFailed, CodeContactGetFailed, "failed to get contact")
	ErrContactUpdateFailed                      = DefByModule(ModuleContact, http.StatusBadRequest, CaseContactUpdateFailed, CodeContactUpdateFailed, "failed to update contact")
	ErrContactUsernameConflict                  = DefByModule(ModuleContact, http.StatusConflict, CaseContactUsernameConflict, CodeContactUsernameConflict, "username already exists")
	ErrContactDeleteFailed                      = DefByModule(ModuleContact, http.StatusBadRequest, CaseContactDeleteFailed, CodeContactDeleteFailed, "failed to delete contact")
	ErrContactUpdateStatusFailed                = DefByModule(ModuleContact, http.StatusBadRequest, CaseContactUpdateStatusFailed, CodeContactUpdateStatusFailed, "failed to update contact status")
	ErrContactUpdateRoleFailed                  = DefByModule(ModuleContact, http.StatusBadRequest, CaseContactUpdateRoleFailed, CodeContactUpdateRoleFailed, "failed to update contact role")
	ErrContactUpdatePilotCategoryFailed         = DefByModule(ModuleContact, http.StatusBadRequest, CaseContactUpdatePilotCategoryFailed, CodeContactUpdatePilotCategoryFailed, "failed to update contact pilot category")
	ErrContactUpdateLicenseFailed               = DefByModule(ModuleContact, http.StatusBadRequest, CaseContactUpdateLicenseFailed, CodeContactUpdateLicenseFailed, "failed to update contact license")
	ErrContactUpdateChiefFlagsFailed            = DefByModule(ModuleContact, http.StatusBadRequest, CaseContactUpdateChiefFlagsFailed, CodeContactUpdateChiefFlagsFailed, "failed to update contact chief flags")
	ErrContactUpdateResponsibleComplaintsFailed = DefByModule(ModuleContact, http.StatusBadRequest, CaseContactUpdateResponsibleComplaintsFailed, CodeContactUpdateResponsibleComplaintsFailed, "failed to update contact responsible complaints")
	ErrContactBulkUpdateFailed                  = DefByModule(ModuleContact, http.StatusBadRequest, CaseContactBulkUpdateFailed, CodeContactBulkUpdateFailed, "failed to bulk update contacts")
	ErrContactListFailed                        = DefByModule(ModuleContact, http.StatusBadRequest, CaseContactListFailed, CodeContactListFailed, "failed to list contacts")
)

// PublicDetail returns the sanitized message that can be exposed over HTTP.
// The underlying AppError.Cause remains available for logs and observability.
func PublicDetail(status int) string {
	switch status {
	case http.StatusBadRequest:
		return "invalid request"
	case http.StatusUnauthorized:
		return "unauthorized"
	case http.StatusForbidden:
		return "forbidden"
	case http.StatusNotFound:
		return "not found"
	case http.StatusConflict:
		return "conflict"
	case http.StatusUnprocessableEntity:
		return "validation failed"
	case http.StatusTooManyRequests:
		return "too many requests"
	default:
		return "an internal error occurred"
	}
}

// After Flight Inspection (Module 37)
const (
	CodeAfterFlightInvalidID                = "AFTER_FLIGHT_INVALID_ID"
	CodeAfterFlightFlightInspectionNotFound = "AFTER_FLIGHT_FLIGHT_INSPECTION_NOT_FOUND"
	CodeAfterFlightInspectionNotFound       = "AFTER_FLIGHT_INSPECTION_NOT_FOUND"
	CodeAfterFlightCapabilitiesUnavailable  = "AFTER_FLIGHT_CAPABILITIES_UNAVAILABLE"
	CodeAfterFlightNR1Required              = "AFTER_FLIGHT_NR1_REQUIRED"
	CodeAfterFlightNR1NotAvailable          = "AFTER_FLIGHT_NR1_NOT_AVAILABLE"
	CodeAfterFlightNR2Required              = "AFTER_FLIGHT_NR2_REQUIRED"
	CodeAfterFlightNR2NotAvailable          = "AFTER_FLIGHT_NR2_NOT_AVAILABLE"
	CodeAfterFlightLHRequired               = "AFTER_FLIGHT_LH_REQUIRED"
	CodeAfterFlightLHNotAvailable           = "AFTER_FLIGHT_LH_NOT_AVAILABLE"
	CodeAfterFlightRHRequired               = "AFTER_FLIGHT_RH_REQUIRED"
	CodeAfterFlightRHNotAvailable           = "AFTER_FLIGHT_RH_NOT_AVAILABLE"
	CodeAfterFlightMGBRequired              = "AFTER_FLIGHT_MGB_REQUIRED"
	CodeAfterFlightMGBNotAvailable          = "AFTER_FLIGHT_MGB_NOT_AVAILABLE"
	CodeAfterFlightIGBRequired              = "AFTER_FLIGHT_IGB_REQUIRED"
	CodeAfterFlightIGBNotAvailable          = "AFTER_FLIGHT_IGB_NOT_AVAILABLE"
	CodeAfterFlightTGBRequired              = "AFTER_FLIGHT_TGB_REQUIRED"
	CodeAfterFlightTGBNotAvailable          = "AFTER_FLIGHT_TGB_NOT_AVAILABLE"
	CodeAfterFlightInvalidJSON              = "AFTER_FLIGHT_INVALID_JSON"
)

const (
	CaseAfterFlightInvalidID                = "01"
	CaseAfterFlightFlightInspectionNotFound = "02"
	CaseAfterFlightInspectionNotFound       = "03"
	CaseAfterFlightCapabilitiesUnavailable  = "04"
	CaseAfterFlightNR1Required              = "05"
	CaseAfterFlightNR1NotAvailable          = "06"
	CaseAfterFlightNR2Required              = "07"
	CaseAfterFlightNR2NotAvailable          = "08"
	CaseAfterFlightLHRequired               = "09"
	CaseAfterFlightLHNotAvailable           = "10"
	CaseAfterFlightRHRequired               = "11"
	CaseAfterFlightRHNotAvailable           = "12"
	CaseAfterFlightMGBRequired              = "13"
	CaseAfterFlightMGBNotAvailable          = "14"
	CaseAfterFlightIGBRequired              = "15"
	CaseAfterFlightIGBNotAvailable          = "16"
	CaseAfterFlightTGBRequired              = "17"
	CaseAfterFlightTGBNotAvailable          = "18"
	CaseAfterFlightInvalidJSON              = "19"
)

var (
	ErrAfterFlightInvalidID                = DefByModule(ModuleAfterFlightInspection, http.StatusUnprocessableEntity, CaseAfterFlightInvalidID, CodeAfterFlightInvalidID, "flight_inspection_id is invalid")
	ErrAfterFlightFlightInspectionNotFound = DefByModule(ModuleAfterFlightInspection, http.StatusNotFound, CaseAfterFlightFlightInspectionNotFound, CodeAfterFlightFlightInspectionNotFound, "flight inspection not found")
	ErrAfterFlightInspectionNotFound       = DefByModule(ModuleAfterFlightInspection, http.StatusNotFound, CaseAfterFlightInspectionNotFound, CodeAfterFlightInspectionNotFound, "after flight inspection not found")
	ErrAfterFlightCapabilitiesUnavailable  = DefByModule(ModuleAfterFlightInspection, http.StatusUnprocessableEntity, CaseAfterFlightCapabilitiesUnavailable, CodeAfterFlightCapabilitiesUnavailable, "helicopter capabilities could not be resolved")
	ErrAfterFlightNR1Required              = DefByModule(ModuleAfterFlightInspection, http.StatusUnprocessableEntity, CaseAfterFlightNR1Required, CodeAfterFlightNR1Required, "oil_engine_nr1_checked is required for this helicopter")
	ErrAfterFlightNR1NotAvailable          = DefByModule(ModuleAfterFlightInspection, http.StatusUnprocessableEntity, CaseAfterFlightNR1NotAvailable, CodeAfterFlightNR1NotAvailable, "NR1 capability not available on this helicopter")
	ErrAfterFlightNR2Required              = DefByModule(ModuleAfterFlightInspection, http.StatusUnprocessableEntity, CaseAfterFlightNR2Required, CodeAfterFlightNR2Required, "oil_engine_nr2_checked is required for this helicopter")
	ErrAfterFlightNR2NotAvailable          = DefByModule(ModuleAfterFlightInspection, http.StatusUnprocessableEntity, CaseAfterFlightNR2NotAvailable, CodeAfterFlightNR2NotAvailable, "NR2 capability not available on this helicopter")
	ErrAfterFlightLHRequired               = DefByModule(ModuleAfterFlightInspection, http.StatusUnprocessableEntity, CaseAfterFlightLHRequired, CodeAfterFlightLHRequired, "hydraulic_lh_checked is required for this helicopter")
	ErrAfterFlightLHNotAvailable           = DefByModule(ModuleAfterFlightInspection, http.StatusUnprocessableEntity, CaseAfterFlightLHNotAvailable, CodeAfterFlightLHNotAvailable, "LH capability not available on this helicopter")
	ErrAfterFlightRHRequired               = DefByModule(ModuleAfterFlightInspection, http.StatusUnprocessableEntity, CaseAfterFlightRHRequired, CodeAfterFlightRHRequired, "hydraulic_rh_checked is required for this helicopter")
	ErrAfterFlightRHNotAvailable           = DefByModule(ModuleAfterFlightInspection, http.StatusUnprocessableEntity, CaseAfterFlightRHNotAvailable, CodeAfterFlightRHNotAvailable, "RH capability not available on this helicopter")
	ErrAfterFlightMGBRequired              = DefByModule(ModuleAfterFlightInspection, http.StatusUnprocessableEntity, CaseAfterFlightMGBRequired, CodeAfterFlightMGBRequired, "oil_transmission_mgb_checked is required for this helicopter")
	ErrAfterFlightMGBNotAvailable          = DefByModule(ModuleAfterFlightInspection, http.StatusUnprocessableEntity, CaseAfterFlightMGBNotAvailable, CodeAfterFlightMGBNotAvailable, "MGB capability not available on this helicopter")
	ErrAfterFlightIGBRequired              = DefByModule(ModuleAfterFlightInspection, http.StatusUnprocessableEntity, CaseAfterFlightIGBRequired, CodeAfterFlightIGBRequired, "oil_transmission_igb_checked is required for this helicopter")
	ErrAfterFlightIGBNotAvailable          = DefByModule(ModuleAfterFlightInspection, http.StatusUnprocessableEntity, CaseAfterFlightIGBNotAvailable, CodeAfterFlightIGBNotAvailable, "IGB capability not available on this helicopter")
	ErrAfterFlightTGBRequired              = DefByModule(ModuleAfterFlightInspection, http.StatusUnprocessableEntity, CaseAfterFlightTGBRequired, CodeAfterFlightTGBRequired, "oil_transmission_tgb_checked is required for this helicopter")
	ErrAfterFlightTGBNotAvailable          = DefByModule(ModuleAfterFlightInspection, http.StatusUnprocessableEntity, CaseAfterFlightTGBNotAvailable, CodeAfterFlightTGBNotAvailable, "TGB capability not available on this helicopter")
	ErrAfterFlightInvalidJSON              = DefByModule(ModuleAfterFlightInspection, http.StatusBadRequest, CaseAfterFlightInvalidJSON, CodeAfterFlightInvalidJSON, "invalid json payload")
)

var Registry = []Def{
	ErrInvalidRequest,
	ErrInvalidDataType,
	ErrDataNotFound,
	ErrValidation,
	ErrBusinessRuleFailed,
	ErrInternal,
	ErrSessionExpired,
	ErrTokenInvalid,
	ErrUserUnauthorized,
	ErrForbiddenAccess,
	ErrAuthInvalidJSON,
	ErrAuthRegistrationDisabled,
	ErrAuthRoleNotFound,
	ErrAuthRegistrationFailed,
	ErrAuthInviteFailed,
	ErrAuthSetPasswordFailed,
	ErrAuthSetPasswordTokenInvalid,
	ErrAuthUsernameAlreadyRegistered,
	ErrAuthResetPasswordInvalidLink,
	ErrAuthResetPasswordFailed,
	ErrPINVerificationRequired202,
	ErrPINIncorrect,
	ErrPINBlocked,
	ErrPINNotSet,
	ErrPINNotBlocked,
	ErrPINValidationFailed,
	ErrPINAttemptLimitReached,
	ErrHelicopterNotFound,
	ErrHelicopterDuplicate,
	ErrHelicopterRelationDelete,
	ErrHelicopterInvalidPayload,
	ErrHelicopterInvalidType,
	ErrHelicopterInvalidJSON,
	ErrHelicopterInvalidID,
	ErrHelicopterIDRequired,
	ErrHelicopterIDMismatch,
	ErrHelicopterAttributesRequired,
	ErrHelicopterCreateFailed,
	ErrHelicopterUpdateFailed,
	ErrHelicopterDeleteFailed,
	ErrHelicopterGenerateFailed,
	ErrHelicopterListFailed,
	ErrHelicopterPinVerificationRequired,
	ErrHelicopterUnauthorized,
	ErrHelicopterFileNotFound,
	ErrHelicopterFileInvalidPayload,
	ErrHelicopterFileInvalidJSON,
	ErrHelicopterFileInvalidUUID,
	ErrHelicopterFileSectionInvalid,
	ErrHelicopterFileFileNameRequired,
	ErrHelicopterFileCreateFailed,
	ErrHelicopterFileUpdateFailed,
	ErrHelicopterFileDeleteFailed,
	ErrHelicopterFileGetFailed,
	ErrHelicopterFileListFailed,
	ErrHelicopterUsageNotFound,
	ErrHelicopterUsageDuplicate,
	ErrHelicopterUsageRelationDelete,
	ErrHelicopterUsageInvalidPayload,
	ErrHelicopterUsageInvalidJSON,
	ErrHelicopterUsageInvalidUUID,
	ErrHelicopterUsageIDRequired,
	ErrHelicopterUsageIDMismatch,
	ErrHelicopterUsageAttributesRequired,
	ErrHelicopterUsageCreateFailed,
	ErrHelicopterUsageGetFailed,
	ErrHelicopterUsageUpdateFailed,
	ErrHelicopterUsageDeleteFailed,
	ErrHelicopterUsageListFailed,
	ErrUserNotFound,
	ErrUserInvalidPayload,
	ErrUserInvalidJSON,
	ErrUserInvalidUUID,
	ErrUserValidationFailed,
	ErrUserCreateFailed,
	ErrUserUpdateFailed,
	ErrUserDeleteFailed,
	ErrUserListFailed,
	ErrUserTimezoneInvalid,
	ErrUserRoleIDsInvalid,
	ErrUserRoleIDsRequired,
	ErrUserPrimaryRoleInvalid,
	ErrMasterDataNotFound,
	ErrMasterDataInvalidPayload,
	ErrMasterDataInvalidJSON,
	ErrMasterDataValidationFailed,
	ErrMasterDataCreateFailed,
	ErrMasterDataUpdateFailed,
	ErrMasterDataDeleteFailed,
	ErrMasterDataListFailed,
	ErrDutyRosterNotFound,
	ErrDutyRosterInvalidPayload,
	ErrDutyRosterInvalidJSON,
	ErrDutyRosterInvalidUUID,
	ErrDutyRosterValidationFailed,
	ErrDutyRosterConflict,
	ErrDutyRosterCreateFailed,
	ErrDutyRosterUpdateFailed,
	ErrDutyRosterDeleteFailed,
	ErrDutyRosterListFailed,
	ErrDutyRosterUnauthorized,
	ErrDutyRosterBaseTypeInvalid,
	ErrDutyRosterRelationDeleteConflict,
	ErrFlightNotFound,
	ErrFlightInvalidPayload,
	ErrFlightInvalidJSON,
	ErrFlightInvalidUUID,
	ErrFlightValidationFailed,
	ErrFlightCreateFailed,
	ErrFlightGetFailed,
	ErrFlightListFailed,
	ErrFlightUnauthorized,
	ErrFlightDateInvalid,
	ErrNoIcaoCodeNotFound,
	ErrNoIcaoCodeRelationDelete,
	ErrNoIcaoCodeInvalidPayload,
	ErrNoIcaoCodeInvalidJSON,
	ErrNoIcaoCodeInvalidUUID,
	ErrNoIcaoCodeIDRequired,
	ErrNoIcaoCodeIDMismatch,
	ErrNoIcaoCodeAttributesRequired,
	ErrNoIcaoCodeNameRequired,
	ErrNoIcaoCodeCreateFailed,
	ErrNoIcaoCodeUpdateFailed,
	ErrNoIcaoCodeDeleteFailed,
	ErrNoIcaoCodeListFailed,
	ErrBaseNotFound,
	ErrBaseRelationDelete,
	ErrBaseInvalidPayload,
	ErrBaseInvalidJSON,
	ErrBaseInvalidUUID,
	ErrBaseInvalidCategory,
	ErrBaseAttributesRequired,
	ErrBaseNameRequired,
	ErrBaseDefaultShiftStartRequired,
	ErrBaseDefaultShiftEndRequired,
	ErrBaseCreateFailed,
	ErrBaseUpdateFailed,
	ErrBaseDeleteFailed,
	ErrBaseListFailed,
	ErrBaseInvalidContactIDs,
	ErrBaseInvalidTime,
	ErrFacilityNotFound,
	ErrFacilityRelationDelete,
	ErrFacilityInvalidPayload,
	ErrFacilityInvalidJSON,
	ErrFacilityInvalidUUID,
	ErrFacilityAttributesRequired,
	ErrFacilityCategoryRequired,
	ErrFacilityNameRequired,
	ErrFacilityTypeRequired,
	ErrFacilityCreateFailed,
	ErrFacilityUpdateFailed,
	ErrFacilityDeleteFailed,
	ErrFacilityListFailed,
	ErrFederalStateNotFound,
	ErrFederalStateRelationDelete,
	ErrFederalStateInvalidPayload,
	ErrFederalStateInvalidJSON,
	ErrFederalStateInvalidID,
	ErrFederalStateLandIDInvalid,
	ErrFederalStateIDRequired,
	ErrFederalStateIDMismatch,
	ErrFederalStateAttributesRequired,
	ErrFederalStateNameRequired,
	ErrFederalStateCreateFailed,
	ErrFederalStateUpdateFailed,
	ErrFederalStateDeleteFailed,
	ErrFederalStateListFailed,
	ErrNationalityNotFound,
	ErrNationalityRelationDelete,
	ErrNationalityInvalidPayload,
	ErrNationalityInvalidJSON,
	ErrNationalityInvalidUUID,
	ErrNationalityIDRequired,
	ErrNationalityIDMismatch,
	ErrNationalityAttributesRequired,
	ErrNationalityNameRequired,
	ErrNationalityCreateFailed,
	ErrNationalityUpdateFailed,
	ErrNationalityDeleteFailed,
	ErrNationalityListFailed,
	ErrCountryNotFound,
	ErrCountryRelationDelete,
	ErrCountryInvalidPayload,
	ErrCountryInvalidJSON,
	ErrCountryInvalidID,
	ErrCountryIDRequired,
	ErrCountryIDMismatch,
	ErrCountryAttributesRequired,
	ErrCountryNameRequired,
	ErrCountryISOCodeInvalid,
	ErrCountryISOCodeDuplicate,
	ErrCountryCreateFailed,
	ErrCountryUpdateFailed,
	ErrCountryDeleteFailed,
	ErrCountryListFailed,
	ErrICAONotFound,
	ErrICAORelationDelete,
	ErrICAOInvalidPayload,
	ErrICAOInvalidJSON,
	ErrICAOInvalidUUID,
	ErrICAOIDRequired,
	ErrICAOIDMismatch,
	ErrICAOAttributesRequired,
	ErrICAOCodeRequired,
	ErrICAOLandIDInvalid,
	ErrICAOFederalStateInvalid,
	ErrICAOCreateFailed,
	ErrICAOUpdateFailed,
	ErrICAODeleteFailed,
	ErrICAOListFailed,
	ErrVocationNotFound,
	ErrVocationRelationDelete,
	ErrVocationInvalidPayload,
	ErrVocationInvalidJSON,
	ErrVocationInvalidUUID,
	ErrVocationIDRequired,
	ErrVocationIDMismatch,
	ErrVocationAttributesRequired,
	ErrVocationNameRequired,
	ErrVocationCreateFailed,
	ErrVocationUpdateFailed,
	ErrVocationDeleteFailed,
	ErrVocationListFailed,
	ErrHealthInsuranceNotFound,
	ErrHealthInsuranceRelationDelete,
	ErrHealthInsuranceInvalidPayload,
	ErrHealthInsuranceInvalidJSON,
	ErrHealthInsuranceInvalidUUID,
	ErrHealthInsuranceIDRequired,
	ErrHealthInsuranceIDMismatch,
	ErrHealthInsuranceAttributesRequired,
	ErrHealthInsuranceNameRequired,
	ErrHealthInsuranceLandIDInvalid,
	ErrHealthInsuranceCreateFailed,
	ErrHealthInsuranceUpdateFailed,
	ErrHealthInsuranceDeleteFailed,
	ErrHealthInsuranceListFailed,
	ErrMedicineNotFound,
	ErrMedicineRelationDelete,
	ErrMedicineInvalidPayload,
	ErrMedicineInvalidJSON,
	ErrMedicineInvalidUUID,
	ErrMedicineIDRequired,
	ErrMedicineIDMismatch,
	ErrMedicineAttributesRequired,
	ErrMedicineNameRequired,
	ErrMedicineGroupIDInvalid,
	ErrMedicineMotorReactionIDInvalid,
	ErrMedicineMotorReactionIDsInvalid,
	ErrMedicineCreateFailed,
	ErrMedicineUpdateFailed,
	ErrMedicineDeleteFailed,
	ErrMedicineListFailed,
	ErrMasterSettingsNotFound,
	ErrMasterSettingsInvalidPayload,
	ErrMasterSettingsInvalidJSON,
	ErrMasterSettingsInvalidUUID,
	ErrMasterSettingsIDRequired,
	ErrMasterSettingsIDMismatch,
	ErrMasterSettingsAttributesRequired,
	ErrMasterSettingsCompanyNameRequired,
	ErrMasterSettingsLogoFileInvalid,
	ErrMasterSettingsCoverFileInvalid,
	ErrMasterSettingsCreateFailed,
	ErrMasterSettingsUpdateFailed,
	ErrMasterSettingsDeleteFailed,
	ErrMasterSettingsGetFailed,
	ErrMasterSettingsMicrosoftUpsert,
	ErrBrandingLogoFetchFailed,
	ErrBrandingCoverFetchFailed,
	ErrBrandingEmailLogoFetchFailed,
	ErrBrandingContentFetchFailed,
	ErrBrandingStorageUnavailable,
	ErrBrandingFileManagerUnavailable,
	ErrFileManagerStorageUnavailable,
	ErrFileManagerQueueUnavailable,
	ErrFileManagerUploadIntentUnavailable,
	ErrFileManagerAttachmentServiceUnavailable,
	ErrFileManagerFolderNotFound,
	ErrFileManagerFileNotFound,
	ErrFileManagerAttachmentNotFound,
	ErrFileManagerUploadIntentNotFound,
	ErrFileManagerStatusConflict,
	ErrFileManagerUploadIntentConflict,
	ErrFileManagerValidationFailed,
	ErrFileManagerActionFailed,
	ErrFileManagerWOPIServiceUnavailable,
	ErrFileManagerWOPIInvalidFileID,
	ErrFileManagerWOPIInvalidToken,
	ErrFileManagerWOPIInvalidProof,
	ErrFileManagerWOPIPermissionDenied,
	ErrFileManagerWOPIFileNotFound,
	ErrFileManagerWOPILockConflict,
	ErrFileManagerWOPIStaleTimestamp,
	ErrFileManagerWOPIValidationFailed,
	ErrOPCNotFound,
	ErrOPCRelationDelete,
	ErrOPCInvalidPayload,
	ErrOPCInvalidJSON,
	ErrOPCInvalidUUID,
	ErrOPCIDRequired,
	ErrOPCIDMismatch,
	ErrOPCAttributesRequired,
	ErrOPCTitleRequired,
	ErrOPCCreateFailed,
	ErrOPCUpdateFailed,
	ErrOPCDeleteFailed,
	ErrOPCListFailed,
	ErrInsurancePatientDataNotFound,
	ErrInsurancePatientDataRelationDelete,
	ErrInsurancePatientDataInvalidPayload,
	ErrInsurancePatientDataInvalidJSON,
	ErrInsurancePatientDataInvalidUUID,
	ErrInsurancePatientDataIDRequired,
	ErrInsurancePatientDataIDMismatch,
	ErrInsurancePatientDataAttributesRequired,
	ErrInsurancePatientDataHealthInsuranceIDInvalid,
	ErrInsurancePatientDataFederalStateIDInvalid,
	ErrInsurancePatientDataCreateFailed,
	ErrInsurancePatientDataUpdateFailed,
	ErrInsurancePatientDataDeleteFailed,
	ErrInsurancePatientDataListFailed,
	ErrPatientDataNotFound,
	ErrPatientDataRelationDelete,
	ErrPatientDataInvalidPayload,
	ErrPatientDataInvalidJSON,
	ErrPatientDataInvalidUUID,
	ErrPatientDataIDRequired,
	ErrPatientDataIDMismatch,
	ErrPatientDataAttributesRequired,
	ErrPatientDataFamilyNameRequired,
	ErrPatientDataFirstNameRequired,
	ErrPatientDataBirthDateInvalid,
	ErrPatientDataGenderInvalid,
	ErrPatientDataOPCIDInvalid,
	ErrPatientDataInsurancePatientDataIDInvalid,
	ErrPatientDataCreateFailed,
	ErrPatientDataUpdateFailed,
	ErrPatientDataDeleteFailed,
	ErrPatientDataListFailed,
	ErrRoleNotFound,
	ErrRolePermissionNotFound,
	ErrRoleRelationDelete,
	ErrRoleInvalidPayload,
	ErrRoleInvalidJSON,
	ErrRoleInvalidUUID,
	ErrRoleInvalidPermissionUUID,
	ErrRoleIDRequired,
	ErrRoleIDMismatch,
	ErrRoleAttributesRequired,
	ErrRoleNameRequired,
	ErrRolePermissionIDRequired,
	ErrRolePermissionIDsEmpty,
	ErrRoleCreateFailed,
	ErrRoleUpdateFailed,
	ErrRoleDeleteFailed,
	ErrRoleAssignFailed,
	ErrRoleRemoveFailed,
	ErrRoleListFailed,
	ErrRolePermissionListFailed,
	ErrRolePermissionUpdateFailed,
	ErrRolePermissionRequiresPINReq,
	ErrMissionNotFound,
	ErrMissionInvalidPayload,
	ErrMissionInvalidJSON,
	ErrMissionInvalidFlightUUID,
	ErrMissionInvalidMissionUUID,
	ErrMissionFlightIDRequired,
	ErrMissionMissionIDRequired,
	ErrMissionTypeInvalid,
	ErrMissionSubtypeRequired,
	ErrMissionSubtypeInvalid,
	ErrMissionSubtypeForbidden,
	ErrMissionDuplicateFlight,
	ErrMissionCreateFailed,
	ErrMissionUpdateFailed,
	ErrMissionDeleteFailed,
	ErrMissionGetFailed,
	ErrMissionListFailed,
	ErrMissionLockedAfterFlightInspection,
	ErrMissionFileInvalidJSON,
	ErrMissionFileValidation,
	ErrMissionFileInvalidMissionUUID,
	ErrMissionFileMissionNotFound,
	ErrMissionFileServiceUnavailable,
	ErrMissionFileActionFailed,
	ErrFlightDataNotFound,
	ErrFlightDataInvalidPayload,
	ErrFlightDataInvalidJSON,
	ErrFlightDataInvalidPathUUID,
	ErrFlightDataMissionIDRequired,
	ErrFlightDataPilotIDRequired,
	ErrFlightDataPilotReference,
	ErrFlightDataInvalidUUID,
	ErrFlightDataInvalidRFC3339,
	ErrFlightDataOriginLocationReference,
	ErrFlightDataDestinationLocationReference,
	ErrFlightDataFacilityReference,
	ErrFlightDataRequired,
	ErrFlightDataCreateFailed,
	ErrFlightDataGetFailed,
	ErrFlightDataAfterFlightIncomplete,
	ErrFlightDataLockedAfterFlightInspection,
	ErrAirRescuerChecklistNotFound,
	ErrAirRescuerChecklistItemNotFound,
	ErrAirRescuerChecklistInvalidPayload,
	ErrAirRescuerChecklistInvalidJSON,
	ErrAirRescuerChecklistInvalidUUID,
	ErrAirRescuerChecklistIDMismatch,
	ErrAirRescuerChecklistScopeInvalid,
	ErrAirRescuerChecklistScopeRequired,
	ErrAirRescuerChecklistTitleRequired,
	ErrAirRescuerChecklistNameRequired,
	ErrAirRescuerChecklistBaseNotFound,
	ErrAirRescuerChecklistCreateFailed,
	ErrAirRescuerChecklistUpdateFailed,
	ErrAirRescuerChecklistDeleteFailed,
	ErrAirRescuerChecklistListFailed,
	ErrAirRescuerChecklistReorderFailed,
	ErrAirRescuerChecklistValidationFailed,
	ErrTakeoverNotFound,
	ErrTakeoverInvalidPayload,
	ErrTakeoverInvalidJSON,
	ErrTakeoverInvalidUUID,
	ErrTakeoverIDRequired,
	ErrTakeoverIDMismatch,
	ErrTakeoverFileSectionInvalid,
	ErrTakeoverCreateFailed,
	ErrTakeoverUpdateFailed,
	ErrTakeoverDeleteFailed,
	ErrTakeoverGetFailed,
	ErrTakeoverListFailed,
	ErrTakeoverHelicopterInUse,
	ErrTakeoverHelicopterAOG,
	ErrTakeoverHelicopterMCF,
	ErrFleetStatusNotFound,
	ErrFleetStatusInvalidPayload,
	ErrFleetStatusInvalidJSON,
	ErrFleetStatusInvalidID,
	ErrFleetStatusIDRequired,
	ErrFleetStatusIDMismatch,
	ErrFleetStatusHelicopterRequired,
	ErrFleetStatusHelicopterInvalid,
	ErrFleetStatusDuplicate,
	ErrFleetStatusRelationDelete,
	ErrFleetStatusCreateFailed,
	ErrFleetStatusUpdateFailed,
	ErrFleetStatusDeleteFailed,
	ErrFleetStatusListFailed,
	ErrFleetStatusMarkServicedFailed,
	ErrFleetStatusFileInvalidJSON,
	ErrFleetStatusFileInvalidPayload,
	ErrFleetStatusFileUploadIntentInvalid,
	ErrFleetStatusFileStorageUnavailable,
	ErrFleetStatusFileFailed,
	ErrHEMSOperationNotFound,
	ErrHEMSOperationInvalidPayload,
	ErrHEMSOperationInvalidJSON,
	ErrHEMSOperationInvalidUUID,
	ErrHEMSOperationAttributesRequired,
	ErrHEMSOperationDateInvalidRFC3339,
	ErrHEMSOperationRelationReferenceInvalid,
	ErrHEMSOperationCreateFailed,
	ErrHEMSOperationUpdateFailed,
	ErrHEMSOperationDeleteFailed,
	ErrHEMSOperationListFailed,
	ErrForcesPresentNotFound,
	ErrForcesPresentRelationDelete,
	ErrForcesPresentInvalidPayload,
	ErrForcesPresentInvalidJSON,
	ErrForcesPresentInvalidUUID,
	ErrForcesPresentIDRequired,
	ErrForcesPresentIDMismatch,
	ErrForcesPresentAttributesRequired,
	ErrForcesPresentNameRequired,
	ErrForcesPresentCreateFailed,
	ErrForcesPresentUpdateFailed,
	ErrForcesPresentDeleteFailed,
	ErrForcesPresentListFailed,
	ErrContactNotFound,
	ErrContactInvalidPayload,
	ErrContactInvalidJSON,
	ErrContactInvalidUserID,
	ErrContactValidationFailed,
	ErrContactCreateFailed,
	ErrContactGetFailed,
	ErrContactUpdateFailed,
	ErrContactUsernameConflict,
	ErrContactDeleteFailed,
	ErrContactUpdateStatusFailed,
	ErrContactUpdateRoleFailed,
	ErrContactUpdatePilotCategoryFailed,
	ErrContactUpdateLicenseFailed,
	ErrContactUpdateChiefFlagsFailed,
	ErrContactUpdateResponsibleComplaintsFailed,
	ErrContactBulkUpdateFailed,
	ErrContactListFailed,
	ErrComplaintNotFound,
	ErrComplaintInvalidPayload,
	ErrComplaintInvalidJSON,
	ErrComplaintInvalidUUID,
	ErrComplaintIDRequired,
	ErrComplaintIDMismatch,
	ErrComplaintCreateFailed,
	ErrComplaintUpdateFailed,
	ErrComplaintDeleteFailed,
	ErrComplaintListFailed,
	ErrComplaintGroupedListFailed,
	ErrComplaintRelationDelete,
	ErrComplaintInvalidHelicopterID,
	ErrComplaintActionSignedLocked,
	ErrEASAReleaseNotFound,
	ErrEASAReleaseInvalidJSON,
	ErrEASAReleaseInvalidUUID,
	ErrEASAReleaseInvalidPayload,
	ErrEASAReleaseCreateFailed,
	ErrEASAReleaseUpdateFailed,
	ErrEASAReleaseDeleteFailed,
	ErrEASAReleaseListFailed,
	ErrEASAReleaseSignFailed,
	ErrEASAReleaseAlreadySigned,
	ErrEASAReleaseIncompleteForSign,
	ErrEASAReleaseSignoffRequired,
	ErrActionSignoffNotFound,
	ErrActionSignoffInvalidUUID,
	ErrActionSignoffInvalidJSON,
	ErrActionSignoffSignFailed,
	ErrActionSignoffUnsignFailed,
	ErrMCFNotFound,
	ErrMCFInvalidJSON,
	ErrMCFInvalidUUID,
	ErrMCFInvalidPayload,
	ErrMCFCreateFailed,
	ErrMCFCompleteFailed,
	ErrMCFNoOpen,
	ErrMCFListFailed,
	ErrMCFHelicopterHasOpen,
	ErrAfterFlightInvalidID,
	ErrAfterFlightFlightInspectionNotFound,
	ErrAfterFlightInspectionNotFound,
	ErrAfterFlightCapabilitiesUnavailable,
	ErrAfterFlightNR1Required,
	ErrAfterFlightNR1NotAvailable,
	ErrAfterFlightNR2Required,
	ErrAfterFlightNR2NotAvailable,
	ErrAfterFlightLHRequired,
	ErrAfterFlightLHNotAvailable,
	ErrAfterFlightRHRequired,
	ErrAfterFlightRHNotAvailable,
	ErrAfterFlightMGBRequired,
	ErrAfterFlightMGBNotAvailable,
	ErrAfterFlightIGBRequired,
	ErrAfterFlightIGBNotAvailable,
	ErrAfterFlightTGBRequired,
	ErrAfterFlightTGBNotAvailable,
	ErrAfterFlightInvalidJSON,
}
