package reddit_api_async

  1. Overview
  2. Docs

A request via Connection may result in two different HTTP requests: a request to the explicitly named API endpoint and, as necessary, a request to retrieve an OAuth2 access token. This type distinguishes errors associated with each of these requests.

type 'endpoint_error t =
  1. | Access_token_request_error of Access_token_request_error.t
  2. | Endpoint_error of 'endpoint_error
val sexp_of_t : ('endpoint_error -> Ppx_sexp_conv_lib.Sexp.t) -> 'endpoint_error t -> Ppx_sexp_conv_lib.Sexp.t