Function: verb--status-code-face
verb--status-code-face is a natively compiled function defined in
verb.el.
Signature
(verb--status-code-face STATUS-LINE)
Documentation
Return a face for STATUS-LINE based on the HTTP status code.
Return nil if the status code cannot be determined.
Source Code
;; Defined in /nix/store/8jnfn8w2mxcxbr2crbklcnija9m0zlkq-emacs-packages-deps/share/emacs/site-lisp/elpa/verb-20260818.1921/verb.el
(defun verb--status-code-face (status-line)
"Return a face for STATUS-LINE based on the HTTP status code.
Return nil if the status code cannot be determined."
(when (string-match "\\([0-9]\\)[0-9][0-9]" status-line)
(pcase (match-string 1 status-line)
("2" 'verb-status-2xx)
("3" 'verb-status-3xx)
("4" 'verb-status-4xx)
("5" 'verb-status-5xx))))