Given a status code, returns the status text, and given a status text, returns the status code.
The status code or status text to look up.
A dictionary with the status texts and their corresponding status codes.
A list of all the supported status codes.
A dictionary with the status codes and their corresponding status texts, for responses that expect an empty body.
A dictionary with the status codes and their corresponding status texts.
A dictionary with status codes for responses that are valid for redirections.
A dictionary with status codes that should be retried.
The type definitions for the
statuses
library.While the library has type definitions, TypeScript throws an error that they can't be exported, so that's why they are copied in there.