ErrorBody

@Serializable
data class ErrorBody(val code: String? = null, val message: String? = null)

A data class used to generate a proper Api Error body, by default, each API will return a code and message on failure.

Parameters

code

The code that defines the error from API.

message

The message about the error from API.

Constructors

Link copied to clipboard
constructor(code: String? = null, message: String? = null)

Properties

Link copied to clipboard
val code: String? = null
Link copied to clipboard
val message: String? = null