Options
All
  • Public
  • Public/Protected
  • All
Menu

@mountainpass/problem-document

Index

Type aliases

BaseProblemDocumentProperties: { detail?: string; instance?: string; status?: StatusCode; title?: string; type?: string }

Base class for Problem Documents, which includes the non-extension fields

Type declaration

  • Optional detail?: string

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

  • Optional instance?: string

    A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.

  • Optional status?: StatusCode

    The HTTP status code ([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.

  • Optional title?: string

    A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization (e.g., using proactive content negotiation; see [RFC7231], Section 3.4).

  • Optional type?: string

    A URI reference [RFC3986] that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be "about:blank".

ProblemDocumentProperties: Omit<Record<string, unknown>, keyof BaseProblemDocumentProperties> & BaseProblemDocumentProperties

The Problem Document with extensions

Note the use of Omit, this allows auto-completion of the base fields

Generated using TypeDoc