Skip to main content
The UnPay API uses conventional HTTP response codes to indicate the success or failure of an API request. In general:
  • Codes in the 2xx range indicate success.
  • Codes in the 3xx range indicate redirection.
  • Codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted, authentication failed, etc.).
  • Codes in the 5xx range indicate an error with UnPay’s servers.

2xx Success

CodeMessageDescription
200OKSuccess
201CREATEDCreated successfully
202ACCEPTEDRequest accepted
204NO_CONTENTNo content

3xx Redirection

CodeMessageDescription
300MULTIPLE_CHOICESMultiple choices
301MOVED_PERMANENTLYMoved permanently
302FOUNDFound
303SEE_OTHERSee other
304NOT_MODIFIEDNot modified
305USE_PROXYUse proxy
307TEMPORARY_REDIRECTTemporary redirect
308PERMANENT_REDIRECTPermanent redirect

4xx Client Errors

CodeMessageDescription
400BAD_REQUESTBad request
401UNAUTHORIZEDUnauthorized
403FORBIDDENForbidden
404NOT_FOUNDResource not found
405METHOD_NOT_ALLOWEDMethod not allowed
409CONFLICTConflict
422UNPROCESSABLE_ENTITYUnprocessable entity
429TOO_MANY_REQUESTSToo many requests

5xx Server Errors

CodeMessageDescription
500INTERNAL_SERVER_ERRORInternal server error
501NOT_IMPLEMENTEDNot implemented
502BAD_GATEWAYBad gateway
503SERVICE_UNAVAILABLEService unavailable
504GATEWAY_TIMEOUTGateway timeout