statusCode property

int? statusCode
final

The HTTP status code of the error response, if available.

Common status codes:

  • 401: Unauthorized (invalid API key)
  • 402: Payment Required (insufficient credits)
  • 404: Not Found (invalid job ID, etc.)
  • 429: Too Many Requests (rate limit exceeded)
  • 500: Internal Server Error

Implementation

final int? statusCode;