Shared
Models
type APIErrorObject struct { Type: "api_error"; Message }
type APIErrorObject struct { Type: "api_error"; Message }
Type APIError
Type APIError
defaultapi_error
Message string
Message string
defaultInternal server error
type AuthenticationError struct { Type: "authentication_error"; Message }
type AuthenticationError struct { Type: "authentication_error"; Message }
Type AuthenticationError
Type AuthenticationError
defaultauthentication_error
Message string
Message string
defaultAuthentication error
type BillingError struct { Type: "billing_error"; Message }
type BillingError struct { Type: "billing_error"; Message }
Type BillingError
Type BillingError
defaultbilling_error
Message string
Message string
defaultBilling error
type ErrorObjectUnion interface{…}
type ErrorObjectUnion interface{…}
One of the following:
type ErrorResponse struct { Type: "error"; Error; RequestID }
type ErrorResponse struct { Type: "error"; Error; RequestID }
type ErrorType string
type ErrorType string
One of the following:
const ErrorTypeInvalidRequestError ErrorType = "invalid_request_error"
const ErrorTypeAuthenticationError ErrorType = "authentication_error"
const ErrorTypePermissionError ErrorType = "permission_error"
const ErrorTypeNotFoundError ErrorType = "not_found_error"
const ErrorTypeRateLimitError ErrorType = "rate_limit_error"
const ErrorTypeTimeoutError ErrorType = "timeout_error"
const ErrorTypeOverloadedError ErrorType = "overloaded_error"
const ErrorTypeAPIError ErrorType = "api_error"
const ErrorTypeBillingError ErrorType = "billing_error"
type GatewayTimeoutError struct { Type: "timeout_error"; Message }
type GatewayTimeoutError struct { Type: "timeout_error"; Message }
Type TimeoutError
Type TimeoutError
defaulttimeout_error
Message string
Message string
defaultRequest timeout
type InvalidRequestError struct { Type: "invalid_request_error"; Message }
type InvalidRequestError struct { Type: "invalid_request_error"; Message }
Type InvalidRequestError
Type InvalidRequestError
defaultinvalid_request_error
Message string
Message string
defaultInvalid request
type NotFoundError struct { Type: "not_found_error"; Message }
type NotFoundError struct { Type: "not_found_error"; Message }
Type NotFoundError
Type NotFoundError
defaultnot_found_error
Message string
Message string
defaultNot found
type OverloadedError struct { Type: "overloaded_error"; Message }
type OverloadedError struct { Type: "overloaded_error"; Message }
Type OverloadedError
Type OverloadedError
defaultoverloaded_error
Message string
Message string
defaultOverloaded
type PermissionError struct { Type: "permission_error"; Message }
type PermissionError struct { Type: "permission_error"; Message }
Type PermissionError
Type PermissionError
defaultpermission_error
Message string
Message string
defaultPermission denied
type RateLimitError struct { Type: "rate_limit_error"; Message }
type RateLimitError struct { Type: "rate_limit_error"; Message }
Type RateLimitError
Type RateLimitError
defaultrate_limit_error
Message string
Message string
defaultRate limited