HTTP Utilities
Module: ppc_robot_lib.utils.http
- HTTP_GATEWAY_ERRORS = {502, 503, 504}
Status codes used for HTTP Gateway errors.
- RATE_LIMIT_ERRORS = {415, 429}
Status codes used for rate limiting errors.
- SERVER_ERRORS = {500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511}
Status codes used for all server-side errors.
- get_status_text(status_code)[source]
Gets a human-friendly description of the status code.
Example:
>>> get_status_text(404) '404 Not Found'