e

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package e defines error codes and messages used throughout the go-api project. These codes help standardize error handling and client-side error interpretation.

Index

Constants

View Source
const (
	BUSY    = -1  // System is busy
	SUCCESS = 0   // Operation successful
	ERROR   = 500 // General server error

	InvalidParams = 400 // Invalid parameters

	ServerUnauthorized         = 10001 // Server is not authorized
	ServerAuthorizationExpired = 10002 // Server authorization has expired
	ServerAuthorizationFail    = 10003 // Server authorization failed
	ServerAppNotFound          = 10004 // Server application not found
	ServerAppAlreadyExists     = 10005 // Server application already exists
	ServerAPIUserNotFound      = 10006 // Server API user not found
	InvalidServerAppID         = 10007 // Invalid server application ID
)

Error codes

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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