Standardbibliothek
Antra::Net::HTTP::Status
import Antra::Net::HTTP::StatusHTTP status code constants.
A flat namespace of the standard IANA HTTP status codes as named integer
constants, so callers can write Status.NOT_FOUND instead of a bare 404.
Antra::Net::HTTP re-exports these, so HTTP.BAD_REQUEST keeps working too.
Funktionen#
fn reason(100)
fn reason(101)
fn reason(102)
fn reason(103)
fn reason(200)
# … 58 weitere KlauselnStandard IANA reason phrase for a status code, e.g. reason(404) is
"Not Found". Unknown codes fall back to "OK" so a response line is
never left without a phrase.
