ApiProblem

data class ApiProblem(@Json(name = "status") val status: Int, @Json(name = "type") val type: String, @Json(name = "title") val title: String, @Json(name = "detail") val detail: String? = null)

Response detailing why a request was rejected. Adheres to the RFC-7807 standard (colloquially known as \"Problem JSON\") for the response format.

Parameters

status

HTTP status code of the problem response.

type

A URN (Uniform Resource Name) identifying the type of the problem.

title

The underlying reason for the problem.

detail

A longer and comprehensive description of the problem. May be null if not available.

Constructors

Link copied to clipboard
constructor(@Json(name = "status") status: Int, @Json(name = "type") type: String, @Json(name = "title") title: String, @Json(name = "detail") detail: String? = null)

Properties

Link copied to clipboard
val detail: String? = null
Link copied to clipboard
val status: Int
Link copied to clipboard
Link copied to clipboard