status

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2026 License: Unlicense Imports: 2 Imported by: 0

Documentation

Overview

Package status holds the table of HTTP status codes and their descriptions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status struct {
	Code        int
	Title       string
	Description string
	URL         string
}

Status describes one HTTP status code.

func All

func All() []Status

All returns every known status sorted by code.

func Lookup

func Lookup(code int) (Status, bool)

Lookup returns the status for code and whether it is known.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL