StatusCode

sealed class StatusCode

Represents a status code returned by an HTTP operation.

Inheritors

Types

Link copied to clipboard

The request cannot be processed without authentication. WWW-Authenticate header must be populated with an authentication challenge.

Link copied to clipboard

The request has failed due to a client error.

Link copied to clipboard
object Companion
Link copied to clipboard
sealed class Failure : StatusCode

The request has failed.

Link copied to clipboard

The user lacks the needed permissions to access the method.

Link copied to clipboard

The server reached an unexpected condition during processing.

Link copied to clipboard

The request is invalid and was not processed.

Link copied to clipboard

The server does not implement the requested method.

Link copied to clipboard

The server is under heavy load and can't complete the request.

Link copied to clipboard
data object Okay : StatusCode

The request has succeeded.

Link copied to clipboard

The payload of the request is larger than the server is willing to process. Payload size-limits are decided by each server.

Link copied to clipboard

The client has sent too many requests. Rate-limits are decided by each server. Retry-After header may be populated with the amount of time that must pass before the next request.

Link copied to clipboard

The request has failed due to a server error.

Link copied to clipboard

The execution of the procedure depends on a call to another server which has failed.

Link copied to clipboard

The execution of the procedure depends on a call to another server which timed out.

Link copied to clipboard

The interpretation of a 404 response is somewhat unique for XRPC. A 404 indicates that the server does not provide a resource at the given location (/xrpc) meaning the server does not support XRPC. To indicate that the given procedure is not implemented, use MethodNotImplemented.

Properties

Link copied to clipboard
val code: Int