MCPcopy Create free account
hub / github.com/blacklanternsecurity/bbot / classify_code

Function classify_code

bbot/core/helpers/misc.py:432–433  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

430
431 # Classify the codes into their respective categories (1xx, 2xx, 3xx, 4xx, 5xx)
432 def classify_code(code):
433 return int(code) // 100
434
435 class1 = classify_code(code1)
436 class2 = classify_code(code2)

Callers 1

best_http_statusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…