giip

API Common Result Codes (RstVal)

Standard definitions for RstVal and RstMsg, the common API response fields in the GIIP platform.

📋 Overview

Every GIIP API includes RstVal (integer code) and RstMsg (descriptive message) at the top level of its response data for execution tracking. These values follow the standards defined in the tDefRst (Result Definition) table in the database.

The term tRstVal mentioned by users refers to the drRstVal column within the tDefRst table. Developers can refer to the codes defined below to implement proper error handling when integrating with our APIs.


📡 Major Result Codes

RstValRstMsgMeaningRemarks
200Process has done successfullySuccessStandard success response
400No data foundBad RequestMissing parameters or empty data
401UnauthorizedAuth FailedKey error or session expired
403ForbiddenNo PermissionInsufficient access rights
404No data foundNot FoundResource does not exist
500System errorSystem ErrorServer-side or DB error

🔍 Detailed Result Codes (tDefRst)

The following is a list of detailed result codes used internally by the system, including domain-specific messages for points, signups, and external integrations.

drRstValdrRstMsgCategory
100Starting Stored Procedure...System
102Data is not matchValidation
201Created successfullyCreation
204No content availableData
211It is clean email. go next...Signup
212Already registered user.Signup
220Charge process has done successfullyBilling/Points
221Point process has done successfullyPoints
230Buying process has done successfullyPurchase
250Prayed successfullyOthers
300Permission errorPermissions
301Not enough pointPoints
302Already data exists.Duplicate
312Pre-registered but not have User data.Signup Status
313Input status is lower than dbStatus.Integrity
320It cannot be processed point processingPoints
330You have NFT Token already.Asset
332Already sold out.Purchase
333Event item limit reached.Event
390Already registered this wallet.Auth/Wallet
405Method not allowedServer/HTTP
409Conflict: Resource already existsState Conflict
410Gone: Resource no longer availableExpired/Deleted
420You don't have enough pointPoints
421Not same point and point history.Integrity
502Bad Gateway: Upstream errorNetwork

💡 Developer Tips

  • Success Check: We recommend proceeding with business logic only when RstVal is 200.
  • Error Handling: 400-series codes indicate the client needs to fix the request, while 500-series codes require investigation by system administrators.
  • Message Usage: RstMsg is intended for developer debugging. We suggest implementing separate locale-specific messages for end-users.

Troubleshooting

SymptomCauseResolution
API response returns RstVal 401Access Key/Secret Key error or expired sessionRe-check your auth keys, refresh the session, and resend the request.
RstVal is 400 or 404 with empty dataMissing required parameter or the requested resource does not existVerify the request parameters and retry with a valid, existing resource identifier.
Processing stops with RstVal 301/420A business condition such as insufficient points is not metCheck RstMsg (e.g., Not enough point), satisfy the prerequisite, then retry.
RstVal returns 500/502Server-side/DB error or an upstream gateway errorDo not retry from the client; contact the system administrator with the RstMsg.

Related Documents: