Static
ACCEPTEDStatic
BAD_Static
CREATEDStatic
FORBIDDENStatic
INTERNAL_Static
NO_Static
NOT_Static
OKStatic
SERVICE_Static
UNAUTHORIZEDStatic
fromValidates and converts a numeric HTTP status code to the corresponding HttpStatusEnum
value.
The numeric HTTP status code.
The corresponding HttpStatusEnum
value if valid, or undefined
otherwise.
Static
getStatic
getRetrieves both the numeric HTTP status code and its textual description.
The numeric HTTP status code.
An object containing the status code and its description, or undefined
if the code is invalid.
Utility class to provide additional functionality around HTTP status codes.