LiveRouteMountFailure
object LiveRouteMountFailureConstructors for route mount failures.
Defined by scalive.LiveRouteMountFailure. View source (scalive/api/src/scalive/LiveRouteMountAspect.scala:86-139)
Methods6
custom
def custom(disconnected: zio.http.Response, connected: LiveSessionMountFailure): LiveRouteMountFailureRejects the mount with an explicit HTTP response and connected failure.
Defined by scalive.LiveRouteMountFailure.custom. View source (scalive/api/src/scalive/LiveRouteMountAspect.scala:135-138)
forbidden
def forbidden(reason: String): LiveRouteMountFailureRejects the mount with HTTP 403 when disconnected, or as unauthorized when connected.
This form logs reason when the mount is rejected; it is never sent to the browser.
Defined by scalive.LiveRouteMountFailure.forbidden. View source (scalive/api/src/scalive/LiveRouteMountAspect.scala:118-118)
def forbidden: LiveRouteMountFailureRejects the mount with HTTP 403 when disconnected, or as unauthorized when connected.
This form gives no reason.
Defined by scalive.LiveRouteMountFailure.forbidden. View source (scalive/api/src/scalive/LiveRouteMountAspect.scala:112-112)
notFound
def notFound(reason: String): LiveRouteMountFailureRejects the mount with HTTP 404 when disconnected, or as unauthorized when connected.
Use it when the response must not reveal whether the resource exists. This form logs reason
when the mount is rejected; it is never sent to the browser.
Defined by scalive.LiveRouteMountFailure.notFound. View source (scalive/api/src/scalive/LiveRouteMountAspect.scala:132-132)
def notFound: LiveRouteMountFailureRejects the mount with HTTP 404 when disconnected, or as unauthorized when connected.
Use it when the response must not reveal whether the resource exists. This form gives no reason.
Defined by scalive.LiveRouteMountFailure.notFound. View source (scalive/api/src/scalive/LiveRouteMountAspect.scala:125-125)
redirect
def redirect(to: LiveLocation): LiveRouteMountFailureRedirects to a typed location: 303 See Other when disconnected, a redirect when connected.
Defined by scalive.LiveRouteMountFailure.redirect. View source (scalive/api/src/scalive/LiveRouteMountAspect.scala:88-88)
redirectUnsafe
def redirectUnsafe(to: zio.http.URL): LiveRouteMountFailureRedirects to an unchecked URL without same-origin or local-path validation.
Use it only for trusted destinations; never build to from untrusted input.
Defined by scalive.LiveRouteMountFailure.redirectUnsafe. View source (scalive/api/src/scalive/LiveRouteMountAspect.scala:94-94)
unauthorized
def unauthorized(reason: String): LiveRouteMountFailureRejects the mount with HTTP 401 when disconnected, or as unauthorized when connected.
This form logs reason when the mount is rejected; it is never sent to the browser.
Defined by scalive.LiveRouteMountFailure.unauthorized. View source (scalive/api/src/scalive/LiveRouteMountAspect.scala:106-106)
def unauthorized: LiveRouteMountFailureRejects the mount with HTTP 401 when disconnected, or as unauthorized when connected.
This form gives no reason.
Defined by scalive.LiveRouteMountFailure.unauthorized. View source (scalive/api/src/scalive/LiveRouteMountAspect.scala:100-100)