Module Mavryk_rpc_http.RPC_client_errors
type rpc_error =
| Empty_answer
| Connection_failed of string
| Bad_request of string
| Forbidden
| Method_not_allowed of Mavryk_rpc.Service.meth list
| Unsupported_media_type of string option
| Not_acceptable of {
proposed : string;
acceptable : string;
}
| Unexpected_status_code of {
code : Cohttp.Code.status_code;
content : string;
media_type : string option;
}
| Unexpected_content_type of {
received : string;
acceptable : string list;
body : string;
}
| Unexpected_content of {
content : string;
media_type : string;
error : string;
}
| OCaml_exception of string
| Unauthorized_host of string option
| Unauthorized_uri
| Too_many_redirects of string
| Redirect_without_location of string