Status

@Serializable
data class Status(val code: Int? = null, val message: String? = null, val details: List<JsonObject>? = null)

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs.

Constructors

Link copied to clipboard
constructor(code: Int? = null, message: String? = null, details: List<JsonObject>? = null)

Properties

Link copied to clipboard
val code: Int?

The status code, which should be an enum value of google.rpc.Code.

Link copied to clipboard
val details: List<JsonObject>?

A list of messages that carry the error details.

Link copied to clipboard
val message: String?

A developer-facing error message, which should be in English.