![]() |
COLNEO Pro 1.0
|
API JSON Response is used as a return value for COLNEO pro API calls.
Since Qt provides a JSON object as type of QVariantMap this class just wraps a QVariantMap(Json) to this class so the return value of each method is properly typed.
A response object always provides these members:
The status code is based on the HTTP status codes:
| Status Code | Meaning |
|---|---|
| 200 | Ok |
| 201 | Created |
| 202 | Accepted |
| 204 | No content |
| 206 | Partial content |
| 400 | Bad request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not found |
| 405 | Method not allowed |
| 409 | Conflict |
| 422 | Unprocessable content |
| 500 | Internal error |
| 501 | Not implemented |
| 503 | Service unavailable |