UNPKG

@leancodepl/kratos

Version:

Headless React components library for building Ory Kratos authentication flows

81 lines 2.2 kB
import { GenericErrorContent } from './GenericErrorContent'; /** * Error responses are sent when an error (e.g. unauthorized, bad request, ...) occurred. * @export * @interface GenericError */ export interface GenericError { /** * The status code * @type {number} * @memberof GenericError */ code?: number; /** * Debug information * * This field is often not exposed to protect against leaking * sensitive information. * @type {string} * @memberof GenericError */ debug?: string; /** * Further error details * @type {any} * @memberof GenericError */ details?: any | null; /** * * @type {GenericErrorContent} * @memberof GenericError */ error?: GenericErrorContent; /** * The error ID * * Useful when trying to identify various errors in application logic. * @type {string} * @memberof GenericError */ id?: string; /** * Error message * * The error's message. * @type {string} * @memberof GenericError */ message: string; /** * A human-readable reason for the error * @type {string} * @memberof GenericError */ reason?: string; /** * The request ID * * The request ID is often exposed internally in order to trace * errors across service architectures. This is often a UUID. * @type {string} * @memberof GenericError */ request?: string; /** * The status description * @type {string} * @memberof GenericError */ status?: string; } /** * Check if a given object implements the GenericError interface. */ export declare function instanceOfGenericError(value: object): value is GenericError; export declare function GenericErrorFromJSON(json: any): GenericError; export declare function GenericErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): GenericError; export declare function GenericErrorToJSON(json: any): GenericError; export declare function GenericErrorToJSONTyped(value?: GenericError | null, ignoreDiscriminator?: boolean): any; //# sourceMappingURL=GenericError.d.ts.map