code

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorCodeString

func ErrorCodeString(code ErrorCode) string

ErrorCodeString returns "HTTP: msg" for code.

Types

type ErrorCode

type ErrorCode int
const (
	ErrUnknown          ErrorCode = iota + 100000 // 100000: Unknown.
	ErrInvalidArg                                 // 400001: Invalid arg.
	ErrUnauthorized                               // 401002: Unauthorized.
	ErrForbidden                                  // 403003: Forbidden.
	ErrNotFound                                   // 404004: Not found.
	ErrInternal                                   // 500005: Internal error.
	ErrDeadlineExceeded                           // 408006: Deadline exceeded.
)

Jump to

Keyboard shortcuts

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