failure_message#

Connect a provider and configure retries, credentials, and transport. See the guide.

zett_agent.providers.http_errors.failure_message(provider, status_code, failure)[source]#

Return one sentence that says what the provider answered and what that usually means.

Parameters:
  • provider (str) – How to name the provider in the sentence.

  • status_code (int) – The HTTP status of the response.

  • failure (HttpFailure) – What read_failure() made of the body.

Return type:

str