A machine-readable format for specifying errors in HTTP API responses based on https://tools.ietf.org/html/rfc7807.

interface IProblemDetails {
    detail?: string;
    errorCode?: number;
    errorSource?: string;
    instance?: string;
    operationId?: string;
    status: number;
    title?: string;
    traceId?: string;
    type?: string;
    [key: string]: any;
}

Implemented by

Indexable

  • [key: string]: any

Properties

detail?: string

A human-readable explanation specific to this occurrence of the problem.

errorCode?: number

The error code.

errorSource?: string

The error source.

instance?: string

A URI reference that identifies the specific occurrence of the problem.

operationId?: string

The operation id.

status: number

The HTTP status code.

title?: string

A short, human-readable summary of the problem type.

traceId?: string

The trace id.

type?: string

The problem type.