Expand description
The errors of a service that the core tells apart: an HTTP error (401 says « reconnect the account »), a refusal that
asking again would not change. They cross the protocol as codes (escouade_plugin_protocol::code) and come back as
these very types in the core (plugins::adapters), so that a client in a plugin and one in the core fail alike.
Structs§
- Http
Error - A service’s answer other than a success: its status, and what
http_error_insays of it (the error’s text). - Refused
- A refusal that asking again would not change (no transition leads from where the issue is to the state).
Functions§
- first_
line - The first line that says something, cut to 200 bytes.
- http_
error_ in - What
nameansweringstatuswithbodymeans, inlang. - said
- The message of an error’s body: Jira’s
errorMessagesorerrors, the first of GraphQL’serrors, GitHub’smessage, ClickUp’serr, or a text’s first line; none for a page of HTML. - truncate
- At most
maxbytes, an ellipsis after when cut.