Status

data class Status(val code: Int, val message: String, val detail: String?)

Represents the status information of an HTTP response.

Encapsulates the status information, including a status code, message, and optional detail. It is commonly used to convey the result of an API response.

Constructors

Link copied to clipboard
constructor(code: Int, message: String, detail: String?)

Properties

Link copied to clipboard
val code: Int

The status code indicating the outcome or status of a response.

Link copied to clipboard

An optional detailed message providing more specific information about the status.

Link copied to clipboard

A descriptive message providing additional information about the status.