Errors
The base error every failed request throws, and its status-specific subclasses.
Exports of @north-light/crouter-sdk, read from the TypeScript compiler at build time. Types re-exported from @north-light/crouter-api are documented with that package.
APIConnectionError
class declared in errors.ts
The daemon could not be reached, or the connection failed mid-request.
Prop
Type
APIConnectionTimeoutError
class declared in errors.ts
The request exceeded its timeout before the daemon answered.
Prop
Type
APIUserAbortError
class declared in errors.ts
The caller's AbortSignal fired.
Prop
Type
AuthenticationError
class declared in errors.ts
The token was missing or wrong: HTTP 401.
Prop
Type
BadRequestError
class declared in errors.ts
The daemon rejected the request: HTTP 400.
Prop
Type
ConflictError
class declared in errors.ts
The resource is in a state that forbids the request: HTTP 409.
Prop
Type
CrouterError
class declared in errors.ts
An SDK configuration error.
Prop
Type
InternalServerError
class declared in errors.ts
The daemon failed while handling the request: HTTP 500 and above.
Prop
Type
NotFoundError
class declared in errors.ts
No such node, profile, cron, or other resource: HTTP 404.
Prop
Type
PermissionDeniedError
class declared in errors.ts
The caller is not allowed to do this: HTTP 403.
Prop
Type
RateLimitError
class declared in errors.ts
Too many requests: HTTP 429.
Prop
Type
UnprocessableEntityError
class declared in errors.ts
The request was well-formed but unusable, or too large: HTTP 413 and 422.
Prop
Type