Search notes:

Python standard library: http.HTTPStatus

The type of http.HTTPStatus is enum.EnumType.
from http import HTTPStatus

for s in HTTPStatus.__members__.values():
    print(f'{s}: {s.phrase:<40} {s.description}')

See also

HTTP status codes

Index