TwitterApiError

data class TwitterApiError(    val code: Int,     val title: String,     val description: String,     val httpStatusCode: HttpStatusCode?)

Represents Twitter API error codes. Described in https://developer.twitter.com/en/docs/basics/response-codes.

In addition to descriptive error text, error messages contain machine-parseable codes. While the text for an error message may change, the codes will stay the same. The following table describes the codes which may appear when working with the standard API (note that the Ads API and some other resource families may present additional error codes). If an error response is not listed in the table, fall back to examining the HTTP status codes above in order to determine the best way to address the issue.

Constructors

Link copied to clipboard
fun TwitterApiError(    code: Int,     title: String,     description: String,     httpStatusCode: HttpStatusCode?)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val code: Int

The code. Must be unique.

Link copied to clipboard
val description: String

The description.

Link copied to clipboard
val httpStatusCode: HttpStatusCode?

Corresponding HTTP status code, or null.

Link copied to clipboard
val title: String

The title.