scruffy/error

A type describing Scryfall’s Error object, returned whenever a request to the API is unsuccessful.

See https://scryfall.com/docs/api/errors for the upstream reference.

Types

An error response from the Scryfall API.

pub type ScryfallError {
  ScryfallError(
    status: Int,
    code: String,
    details: String,
    error_type: option.Option(String),
    warnings: option.Option(List(String)),
  )
}

Constructors

  • ScryfallError(
      status: Int,
      code: String,
      details: String,
      error_type: option.Option(String),
      warnings: option.Option(List(String)),
    )

Values

Search Document