OpenRouter TypeScript SDK - v1.0.6
GitHub
Examples
Preparing search index...
OpenRouterError
Class OpenRouterError
Represents a structured error returned by the OpenRouter API
Hierarchy
Error
OpenRouterError
Index
Constructors
constructor
Properties
status?
code?
request
Id?
details?
Constructors
constructor
new
OpenRouterError
(
message
:
string
,
options
?:
{
status
?:
number
;
code
?:
string
|
number
;
requestId
?:
string
;
details
?:
unknown
;
}
,
)
:
OpenRouterError
Parameters
message
:
string
Optional
options
:
{
status
?:
number
;
code
?:
string
|
number
;
requestId
?:
string
;
details
?:
unknown
;
}
Returns
OpenRouterError
Properties
Optional
Readonly
status
status
?:
number
Optional
Readonly
code
code
?:
string
|
number
Optional
Readonly
request
Id
requestId
?:
string
Optional
Readonly
details
details
?:
unknown
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
status
code
request
Id
details
GitHub
Examples
OpenRouter TypeScript SDK - v1.0.6
Loading...
Represents a structured error returned by the OpenRouter API