import * as mod from "https://dotland.deno.dev/std@0.215.0/http/status.ts";
Contains the STATUS_CODE
object which contains standard HTTP
status codes and provides several type guards for handling status codes
with type safety.
Examples
Variables
Contains the | |
A record of all the status codes text. |
Functions
A type guard that determines if the status code is a client error. | |
A type guard that determines if the status code is an error. | |
A type guard that determines if the status code is informational. | |
A type guard that determines if the status code is a redirection. | |
A type guard that determines if the status code is a server error. | |
Returns whether the provided number is a valid HTTP status code. | |
A type guard that determines if the status code is successful. |
Type Aliases
An HTTP status that is a client error (4XX). | |
An HTTP status that is an error (4XX and 5XX). | |
An HTTP status that is a informational (1XX). | |
An HTTP status that is a redirect (3XX). | |
An HTTP status that is a server error (5XX). | |
An HTTP status code. | |
An HTTP status text. | |
An HTTP status that is a success (2XX). |