Skip to content

RateLimitException

Namespace: TypeSafe.AI.Sdk

public class RateLimitException : ApiException, ISerializable

HTTP 429: the rate limit was exceeded.

Inheritance: object → Exception → TypeSafeException → ApiException

Implements: ISerializable

View source

RateLimitException(HttpStatusCode, object?, HttpResponseHeaders, string?)

Section titled “RateLimitException(HttpStatusCode, object?, HttpResponseHeaders, string?)”
public RateLimitException(HttpStatusCode statusCode, object? body, HttpResponseHeaders headers, string? message = null)

Create an API error from a completed HTTP response.

Parameters

Name Type Description
statusCode HttpStatusCode
body object
headers HttpResponseHeaders
message string

View source

public int? RetryAfterMs { get; }

Server retry delay in milliseconds, or null when absent or invalid.

Value: int?

View source

MIT · Copyright (c) Dario Kondratiuk. · not affiliated with TypeSafe beyond being a client of the public API