I refer to HTTP Status codes all the time throughout the day and use Python's built-in http library:
>>> from http import HTTPStatus
>>> HTTPStatus.OK
<HTTPStatus.OK: 200>
>>> HTTPStatus(404)
<HTTPStatus.NOT_FOUND: 404>