Skip to main content
Module

x/acorn/router.ts>StatusRange

A focused RESTful server framework for Deno 🌰🦕
Latest
type alias StatusRange
import { type StatusRange } from "https://deno.land/x/acorn@0.5.1/router.ts";

A string that represents a range of HTTP response Status codes:

  • "*" - matches any status code
  • "info" - matches information status codes (100-199)
  • "success" - matches successful status codes (200-299)
  • "redirect" - matches redirection status codes (300-399)
  • "client-error" - matches client error status codes (400-499)
  • "server-error" - matches server error status codes (500-599)
  • "error" - matches any error status code (400-599)
definition:
| "*"
| "info"
| "success"
| "redirect"
| "client-error"
| "server-error"
| "error"