io.eezo.http.Problem
See theProblem companion object
A failure, as RFC 9457 section 3's data model.
One value, two renderings: a browser route answers it as eezo's error page, and an API route as application/problem+json, so the HTML and JSON paths cannot diverge on errors. Which one is the route's kind, never the Accept header: a browser hitting a missing widget gets a page, not raw JSON, and eezo does not negotiate, which is out of scope.
tpe is RFC 9457's type member, spelled the way core's HTML DSL already spells that keyword. It stays about:blank: minting https://eezo.io/problems/... URIs is a documentation obligation taken on before eezo has documentation, and section 4.2.1 makes title the status phrase exactly when type is about:blank.
Attributes
- Companion
- object
- Source
- Problem.scala
- Graph
-
- Supertypes
Members list
In this article