@ende/http/status
ende add jsr:@ende/httpVersion 2026.10.15 on JSR.
Contains the STATUS_CODE object which contains standard HTTP
status codes and provides several type guards for handling status codes
with type safety.
Exports
ClientErrorStatus— An HTTP status that is a client error (4XX).ErrorStatus— An HTTP status that is an error (4XX and 5XX).InformationalStatus— An HTTP status that is a informational (1XX).isClientErrorStatus— A type guard that determines if the status code is a client error.isErrorStatus— A type guard that determines if the status code is an error.isInformationalStatus— A type guard that determines if the status code is informational.isRedirectStatus— A type guard that determines if the status code is a redirection.isServerErrorStatus— A type guard that determines if the status code is a server error.isStatus— Returns whether the provided number is a valid HTTP status code.isSuccessfulStatus— A type guard that determines if the status code is successful.RedirectStatus— An HTTP status that is a redirect (3XX).ServerErrorStatus— An HTTP status that is a server error (5XX).STATUS_CODE— Contains the STATUS_CODE object which contains standard HTTP status codes and provides several type guards for handling status codes with type safety.STATUS_TEXT— A record of all the status codes text.StatusCode— An HTTP status code.StatusText— An HTTP status text.SuccessfulStatus— An HTTP status that is a success (2XX).