Skip to content

Problem

type Problem<Code, Extension> = object & Extension;

Defined in: elysia/dist/error.d.ts:145

RFC 9457 Problem Details shape.

NameTypeDescriptionDefined in
code?stringExtension member carrying a stable machine-readable token. type may be widened to a URI by HTTPError.typeBase, code never iselysia/dist/error.d.ts:153
detail?string-elysia/dist/error.d.ts:156
instance?string-elysia/dist/error.d.ts:157
status?Code-elysia/dist/error.d.ts:155
title?string-elysia/dist/error.d.ts:154
type?stringURI (or slug) identifying the problem type. Default 'about:blank'elysia/dist/error.d.ts:146
Type ParameterDefault type
Code extends number | keyof StatusMapnumber | keyof StatusMap
Extension extends Record<string, unknown>object

https://www.rfc-editor.org/info/rfc9457/

Last updated:

Type to search the documentation.

    Up arrowDown arrow to navigateEnter to selectEscape to close