Troubleshooting the O Series APIs

HTTP Status Error Codes

These are the standard HTTP status codes used by the O Series APIs:

HTTP Response StatusResolution
400 Bad RequestThis error might be caused by the invalid JSON payload in the request. Inspect the error details included in the response (if any) for further information.
401 UnauthorizedEnsure the authentication token in the HTTP header was included in the request and was valid.
403 ForbiddenThis error indicates that the server understood the request but refused to process it.
500 Internal Server ErrorThe operation should be retried later. If the error persists, reach out to Vertex Support.

Response Error Information

In most cases, the API returns a response with error information in the JSON format. For example:

{
  "errors": [
    {
      "code": "string",
      "message": "string",
      "target": "string"
    }
  ],
  "meta": {
    "app": "string",
    "timeElapsed(ms)": 0,
    "timeReceived": "2024-03-04T17:23:45Z",
    "timeElapsedDetails": [
      {
        "key": "string",
        "value": "string"
      }
    ]
  }
}