MCPcopy
hub / github.com/suitenumerique/docs / IAPIError

Interface IAPIError

src/frontend/apps/impress/src/api/APIError.ts:6–13  ·  view source on GitHub ↗

* Generic interface for representing an API error structure. * * @template T - Optional type of additional data returned with the error.

Source from the content-addressed store, hash-verified

4 * @template T - Optional type of additional data returned with the error.
5 */
6interface IAPIError<T = unknown> {
7 /** HTTP status code or API-defined error code */
8 status: number;
9 /** Optional list of error causes (e.g., validation issues) */
10 cause?: string[];
11 /** Optional extra data provided with the error */
12 data?: T;
13}
14
15/**
16 * Custom error class for representing API errors.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected