constant

package
v0.0.0-...-d6791e1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthError = struct {
	AuthInvalidToken      resp.ErrorResponse
	AuthExpiredToken      resp.ErrorResponse
	AuthInvalidCredential resp.ErrorResponse
	AuthUnauthorized      resp.ErrorResponse
	AuthForbidden         resp.ErrorResponse
}{
	AuthInvalidToken: resp.ErrorResponse{
		Code:       "00000401",
		Message:    "invalid_token",
		StatusCode: http.StatusUnauthorized,
	},
	AuthExpiredToken: resp.ErrorResponse{
		Code:       "00000401",
		Message:    "expired_token",
		StatusCode: http.StatusUnauthorized,
	},
	AuthInvalidCredential: resp.ErrorResponse{
		Code:       "00000401",
		Message:    "invalid_credential",
		StatusCode: http.StatusUnauthorized,
	},
	AuthUnauthorized: resp.ErrorResponse{
		Code:       "00000401",
		Message:    "unauthorized",
		StatusCode: http.StatusForbidden,
	},
	AuthForbidden: resp.ErrorResponse{
		Code:       "00000403",
		Message:    "forbidden",
		StatusCode: http.StatusForbidden,
	},
}

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