Unauthorized
io.eezo.http.Unauthorized
final case class Unauthorized(detail: String) extends EezoException
A program on an API route that did not say who it is, or said it with a token nobody issued.
A 401 of its own beside Forbidden, because here there is a challenge to make and a client that can act on it: a program sends an API token in a Bearer header, and WWW-Authenticate: Bearer tells it to send one. The header is the boundary's to write, like Allow on a 405, so this carries neither it nor a status. Only a guard's token check throws it, and no browser route does, because a browser route already has its answer to nobody signed in: a redirect to the login page, which a person can act on and a challenge is not.
Attributes
- Source
- Errors.scala
- Graph
-
- Supertypes
-
trait Producttrait Equalsclass EezoExceptionclass RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass Any
Members list
In this article