package reddit_api_async

  1. Overview
  2. Docs

An Access_token_request_error.t represents an error encountered while fetching an access token.

type t =
  1. | Cohttp_raised of Core.Exn.t
  2. | Json_parsing_error of {
    1. error : Core.Error.t;
    2. response : Cohttp.Response.t;
    3. body : Cohttp.Body.t;
    }
  3. | Token_request_rejected of {
    1. response : Cohttp.Response.t;
    2. body : Cohttp.Body.t;
    }
  4. | Other_http_error of {
    1. response : Cohttp.Response.t;
    2. body : Cohttp.Body.t;
    }
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t