Errors
Errors surfaced by the SDK. Requests made through the OpenAI-compatible surface use the official OpenAI error classes; the class below is used by the lower-level Privatemode operations.
PrivatemodeAPIError
Error returned when a Privatemode API endpoint responds unsuccessfully.
Constructor
new PrivatemodeAPIError(
message: string,
status: number,
body: unknown,
headers?: Headers,
options?: ErrorOptions,
)messagestringrequired
statusnumberrequired
bodyunknownrequired
headersHeaders
optionsErrorOptions
Properties
name'PrivatemodeAPIError'required
statusnumberrequired
bodyunknownrequired
headersHeaders