Companion

Holds what RFC 9457 fixes on the wire, the nesting limit both codecs share, and the about:blank factory.

Properties

Link copied to clipboard
const val ABOUT_BLANK: String

The RFC's built-in problem type, and the sole initial entry in the "HTTP Problem Types" registry (§4.2.1): "this problem has no more specific semantics beyond the HTTP status code itself". §3.1 makes it the meaning of an absent type, so emitting it explicitly and omitting the member are equivalent to a conforming consumer.

Link copied to clipboard

How deeply an extension value may nest before either codec refuses it.

Link copied to clipboard

The five member names §3.1 defines, which no extension member may reuse.

Functions

Link copied to clipboard
fun blank(status: Int, title: String): Problem

The about:blank problem for status. title SHOULD be the status code's standard reason phrase (§4.2.1, e.g. "Not Found" for 404). This module carries no reason-phrase table, so the caller passes one in. problem-details-ktor adds an overload that fills it from HttpStatusCode.description.