ProblemDetailsCatalog
A declarative catalog of exception-to-problem and status-to-problem mappings.
Every entry becomes exactly one registration on Ktor's own StatusPages configuration; dispatch, including nearest-parent-class resolution, stays StatusPages's job. Obtain one through problemDetails, or through problemCatalog when something besides StatusPages needs it too. Configuration is limited to the builder block. Once returned, a catalog is immutable, so every consumer observes the same mappings.
Properties
The problem types declared through map with a ProblemType argument, in declaration order.
The status codes registered through forStatusCode, including via standardStatusCodes. The returned set is a snapshot and cannot change this catalog.
Functions
Registers a problem body for one status code.
Replaces the problem produced for an exception no mapping covers.
Covers the codes Ktor itself generates without an explicit body: 404, 405, 406, 415.