Problem

io.eezo.http.Problem
See theProblem companion object
final case class Problem(tpe: String, title: String, status: Int, detail: String, instance: String)

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
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala