monitor.status-code-summary
Count HTTP status codes by class (1xx to 5xx) and give the server error and client error rates in basis points.
summarise_status_codes in Python2 capabilities
summarise_status_codes in Pythonparse_access_log in Python