Forbidden
io.eezo.http.Forbidden
final case class Forbidden(detail: String) extends EezoException
A request the application understood and refuses: a form whose CSRF token is missing or stale (#170), a write to a row the current user does not own, or a guarded WebSocket handshake carrying no live sign in. #166's constraint: no status here, and a redirect to login is a Response, never an error.
The refusal for everything a browser does, rather than Unauthorized, because a browser signs in through a form and a session cookie and there is no challenge for that to put on a 401: the scheme token would be one eezo invented, and a client reading the status alone learns as little from that as from this. What kind of refusal it was is the detail's job. See docs/adr/0001-http-errors-live-in-http-and-carry-no-status.md.
Attributes
- Source
- Errors.scala
- Graph
-
- Supertypes
-
trait Producttrait Equalsclass EezoExceptionclass RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass Any
Members list
In this article