If the request returned in error, it will look something like this:
{
"status": "ERROR",
"code": 303,
"msg": "Your account has expired."
}
Here is a list of the HTTP status code that might be returned on a Ragic request:
| HTTP Status | Description |
|---|---|
| 200 | OK - Everything worked as expected. |
| 400 | Bad Request - Often missing a required parameter. |
| 401 | Unauthorized - No valid API key provided. |
| 402 | Request Failed - Parameters were valid but request failed. |
| 404 | Not Found - The requested item doesn't exist. |
| 500, 502, 503, 504 | Server errors - something went wrong on Ragic's end. |
If there was an error processing your request, it will generally contain an error code and a description. Here is the list of error codes that you might receive as a response to a Ragic request:
| Error Code Id | Error Description |
|---|---|
| 101 | Invalid Account Name: {Account_Name} |
| 102 | Invalid Path: {Path} |
| 103 | Invalid Form Index: {Form_Index} |
| 104 | Cannot POST Data To A Custom Form |
| 105 | Authentication Required Before Using API |
| 106 | No Access Right |
| 107 | Resource Bundle Not Found |
| 108 | Error Loading Requested Form |
| 109 | Cannot Create More Records |
| 201 | Error Processing Request Parameters |
| 202 | Error Executing Request |
| 203 | POST Request Did Not Finish |
| 204 | Request Frequency Too High |
| 301 | Sid Parameter / Session Has Timed Out |
| 303 | Account Expired |
| 304 | Secret Key Is Invalid |
| 402 | Record Locked |
| 404 | Record Not Found |