codes

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code string

Code represents the status of an action. It is a rough equivalent of the HTTP status code.

const (
	OK             Code = "200"
	Accepted       Code = "202"
	NoContent      Code = "204"
	PartialContent Code = "206"

	Invalid       Code = "400"
	NotAuthorized Code = "401"
	NotPermitted  Code = "403"
	NotFound      Code = "404"
	Timeout       Code = "408"

	Error          Code = "500"
	NotImplemented Code = "501"
	NotAvailable   Code = "503"
	NotSupported   Code = "505"
	Unknown        Code = "520"
)

Response codes.

func (Code) String

func (c Code) String() string

Jump to

Keyboard shortcuts

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