ErrorResponse

class ErrorResponse(val code: Int, val message: String, val metadata: Map<String, String>? = null)(source)

Represents an error response structure typically used for conveying error details to the clients.

Constructors

Link copied to clipboard
constructor(code: Int, message: String, metadata: Map<String, String>? = null)

Properties

Link copied to clipboard
val code: Int

The numeric code representing the error.

Link copied to clipboard

A descriptive message providing details about the error.

Link copied to clipboard
val metadata: Map<String, String>? = null

Optional additional information about the error in the form of key-value pairs.