Explanation of the StatusCode Enum in MMSHAPI

The StatusCode enum in MMSHAPI.Enums defines a structured list of system-wide status codes, each representing a specific state or response condition. These status codes improve error handling, debugging, and API response standardization in the application. The enum uses integer values categorized into different ranges (100-899), with Description attributes providing human-readable explanations.


Code

Name

Description

100

Success

Operation completed successfully

101

Active

Entity is active

102

Waiting

Entity is pending action

103

Ready

Entity is ready for processing

104

Modified

Entity has been modified

105

Changed

Entity has been changed

110

Deleted

Entity has been deleted

200

AuthLoadInitialData

Load initial authentication data

201

AuthEnterPhoneNumber

Enter phone number for authentication

202

AuthEnterVerificationCode

Enter verification code sent via SMS

203

AuthReady

Authentication is ready to proceed

204

AuthLoggedOut

User has been logged out successfully

205

AuthEnterClientInfo

Enter client information for registration

206

AuthSessionExpired

User session expired

207

AuthAccountLocked

User account is locked

208

AuthAccountSuspended

User account is suspended

209

AuthInvalidCredentials

Invalid credentials provided

210

AuthInsufficientPermissions

User does not have sufficient permissions

300

Processing

Request is being processed

301

Approved

Request has been approved

302

Rejected

Request has been rejected

303

UnderReview

Request requires further review

304

SyncInProgress

Data synchronization is in progress

305

DuplicateRequest

Duplicate request detected

306

TemporarilyUnavailable

Resource is temporarily unavailable

307

ManualInterventionRequired

Operation requires manual intervention

400

PaymentPending

Payment is pending

401

PaymentSuccess

Payment completed successfully

402

PaymentFailed

Payment failed

403

PaymentCanceled

Payment was canceled by user

404

PaymentInvalidAmount

Payment amount is invalid

405

PaymentInsufficientFunds

Insufficient funds in account

406

PaymentMethodNotSupported

Payment method is not supported

407

PaymentGatewayError

Payment gateway error occurred

408

PaymentRefunded

Transaction has been refunded

409

PaymentFraudCheck

Transaction is under fraud review

500

FileUploadSuccess

File uploaded successfully

501

FileUploadFailed

File upload failed

502

FileFormatNotSupported

File format is not supported

503

FileTooLarge

File is too large

504

FileNotFound

File not found

505

FileAccessDenied

File access denied

506

FileAlreadyExists

File already exists

507

FileProcessingError

File processing error

600

ApiRequestSuccessful

Request was successfully received and processed

601

ApiInvalidRequest

Invalid request parameters

602

ApiUnauthorized

Unauthorized request

603

ApiForbidden

Access forbidden

604

ApiResourceNotFound

Requested resource not found

605

ApiTimeout

Request timed out

606

ApiRateLimitExceeded

Rate limit exceeded

607

ApiServerError

Internal server error

608

ApiServiceUnavailable

Service unavailable

609

ApiVersionNotSupported

API version is not supported

700

UnknownError

Unknown error occurred

701

InvalidData

Invalid or corrupted data provided

702

AlreadyExists

Resource already exists

703

ErrorOnCreate

An error occurred while creating the resource

704

ErrorOnSave

An error occurred while saving the resource

705

ErrorOnUpdate

An error occurred while updating the resource

706

ErrorOnDelete

An error occurred while deleting the resource

707

ServiceTimeout

Service timeout occurred

708

OperationNotSupported

Operation is not supported

800

SystemOnline

System is online and operational

801

SystemUnderMaintenance

System is under maintenance

802

SystemHighLoad

System is experiencing high load

803

SystemShutdown

System shutdown initiated

804

SystemRestartRequired

System restart required

805

SystemDatabaseError

System database connection error