namespace adas_core.Domain.Enums;
public static class HttpEnum
{
///
/// Enumeration for HTTP error code messages.
///
public enum ErrorMessage
{
#region 200 OK
///
/// The update could not be completed because the resource has not been modified.
///
OkResouceNotModified = 2001,
#endregion
#region 400 Bad Request
///
/// Required parameters are missing from the request.
///
BadRequestMissingParameters = 4001,
///
/// The format of the provided data is invalid.
///
BadRequestInvalidFormat = 4002,
///
/// The submitted data contains duplicate values that are not allowed.
///
BadRequestDuplicateData = 4003,
///
/// Username already exists.
///
BadRequestInvalidUsername = 4004,
///
/// Email already exists.
///
BadRequestInvalidEmail = 4005,
///
/// Incorrect type.
///
BadRequestIncorrectType = 4006,
///
/// Incorrect length.
///
BadRequestIncorrectLength = 4007,
///
/// Invalid username or email.
///
BadRequestIncorrectEmailOrUsername = 4008,
#endregion
#region 401 Unauthorized
///
/// The access token has expired.
///
UnauthorizedTokenExpired = 4011,
///
/// The user does not have permission to perform this action.
///
UnauthorizedNoPermission = 4012,
///
/// The authentication token is invalid or has been revoked.
///
UnauthorizedInvalidToken = 4013,
///
/// User not registered.
///
UnauthorizedUserNotRegistered = 4014,
///
/// Invalid user credentials.
///
UnauthorizedInvalidCredentials = 4015,
#endregion
#region 403 Forbidden
///
/// User does not have access to this resource.
///
ForbiddenNoAccess = 4031,
///
/// User does not have permission to perform this operation.
///
ForbiddenNoPermission = 4032,
///
/// Access is restricted due to security configurations.
///
ForbiddenRestrictedAccess = 4033,
///
/// User is blocked or disabled.
///
ForbiddenUserBlocked = 4034,
#endregion
#region 404 Not Found
///
/// The requested resource does not exist.
///
NotFoundResourceMissing = 4041,
///
/// No items matching the search criteria were found.
///
NotFoundNoMatches = 4042,
#endregion
#region 409 Conflict
///
/// The update could not be completed.
///
ConflictUpdateFailed = 4091,
///
/// The deletion could not be completed.
///
ConflictDeleteFailed = 4092,
///
/// The deletion could not be completed because the resource is in use.
///
ConflictResourceInUse = 4093,
///
/// The resource already exists and cannot be duplicated.
///
ConflictResourceAlreadyExists = 4094,
///
/// The current state of the resource prevents this operation.
///
ConflictInvalidResourceState = 4095,
///
/// The creation could not be completed.
///
ConflictCreationFailed = 4096,
///
/// Operation could not be completed.
///
ConflictOperationIncompleted = 4097,
#endregion
#region 422 Unprocessable Entity
///
/// One or more fields do not meet the required validations.
///
UnprocessableEntityInvalidFields = 4221,
///
/// The resource cannot be processed.
///
UnprocessableEntityCannotProcess = 4222,
///
/// The provided value is outside the allowed range.
///
UnprocessableEntityOutOfRange = 4223,
///
/// The password is not strong enough.
///
UnprocessableEntityInvalidPassword = 4224,
///
/// The current password is incorrect, or the new password does not meet the required format. Please check and try
/// again.
///
BadRequestIncorrectPassword = 4225,
#endregion
#region 500 Internal Server Error
///
/// An unexpected error occurred while processing the request.
///
InternalServerErrorUnexpected = 5001,
///
/// The service could not complete the operation due to an internal failure.
///
InternalServerErrorInternalFailure = 5002,
///
/// Error communicating with an external service.
///
InternalServerErrorExternalServiceError = 5003,
#endregion
#region 503 Service Unavailable
///
/// The service is under maintenance. Please try again later.
///
ServiceUnavailableUnderMaintenance = 5031,
///
/// The system is experiencing high load. Please try again later.
///
ServiceUnavailableHighLoad = 5032,
///
/// The data service is temporarily unavailable.
///
ServiceUnavailableDataServiceUnavailable = 5033,
///
/// Action is temporarily unavailable.
///
ServiceUnavailableCensusInAutomaticMode = 5034
#endregion
}
}