Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
GitHub
o

LiveRouteMountFailure

object LiveRouteMountFailure

Constructors 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): LiveRouteMountFailure

Rejects 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): LiveRouteMountFailure

Rejects 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: LiveRouteMountFailure

Rejects 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): LiveRouteMountFailure

Rejects 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: LiveRouteMountFailure

Rejects 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): LiveRouteMountFailure

Redirects 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): LiveRouteMountFailure

Redirects 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): LiveRouteMountFailure

Rejects 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: LiveRouteMountFailure

Rejects 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)