codes

package
v2.19.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 3 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 codes.Code
const (
	// Accepted device accepts request and action will be proceed in future.
	Accepted Code = iota + 4096
	// MethodNotAllowed device refuse call the method.
	MethodNotAllowed
	// Created success status response code indicates that the request has succeeded and has led to the creation of a resource.
	Created
	// Valid indicates the that the get request with etag is same as resource etag (resource is not modified)
	Valid

	// InvalidCode cannot determines result from device code.
	InvalidCode Code = iota + (2 * 4096)
)

func (Code) String

func (c Code) String() string

func (Code) ToHTTPCode

func (c Code) ToHTTPCode() int

Jump to

Keyboard shortcuts

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