AnthropicStreamError
Namespace: Vercel.AI.Anthropic
public static class AnthropicStreamErrorHTTP status implied by an Anthropic stream error type.
Inheritance: object
Methods
Section titled “Methods”IsRetryable(string?)
Section titled “IsRetryable(string?)”public static bool IsRetryable(string? type)True for api, overloaded, and rate-limit errors.
Parameters
| Name | Type | Description |
|---|---|---|
type |
string |
Returns: bool
StatusCode(string?)
Section titled “StatusCode(string?)”public static int? StatusCode(string? type)Maps an error type onto a status code. Unknown types have no status.
Parameters
| Name | Type | Description |
|---|---|---|
type |
string |
Returns: int?
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product