codes

package
v0.0.4 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: 0

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