View as Markdown

Error Handling

The Proctorio API uses standard HTTP status codes and returns structured error responses.

HTTP Status Codes

CodeMeaning
200Success — request completed and URL was generated
400Bad Request — validation failed on one or more fields
401Unauthorized — invalid or missing API key
429Too Many Requests — rate limit exceeded
500Server Error — internal error, retry with exponential backoff

Error Response Format

Validation errors (400) return an array of error objects:

[
  {
    "memberNames": ["launch_url"],
    "errorMessage": "The launch_url field is required."
  },
  {
    "memberNames": ["exam_settings"],
    "errorMessage": "exam_settings is required."
  }
]

401 Error Codes

CodeDescription
2154Account not active — contact your account manager
2155Incorrect region — use the correct regional endpoint
2655Invalid API key — check your key value

Best Practices

  • Always validate your request payload before sending
  • Implement retry logic with exponential backoff for 5xx errors
  • Log the full error response body for debugging
  • Never expose your API key in client-side code