errors

package
v0.0.0-...-c28416b Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InvalidAssignment = YggdrasilErrorResponse{
	StatusCode:   403,
	Error:        "ForbiddenOperationException",
	ErrorMessage: "The profile requested to be assigned is not owned by this account",
}
View Source
var InvalidCredentials = YggdrasilErrorResponse{
	StatusCode:   403,
	Error:        "ForbiddenOperationException",
	ErrorMessage: "Invalid credentials. Invalid username or password.",
	Cause:        "Credentials are Invalid",
}
View Source
var InvalidJSONFormat = YggdrasilErrorResponse{
	StatusCode: 400,
	Error:      "JSONMappingException",

	ErrorMessage: "Unexpected character",
}
View Source
var InvalidMediaType = YggdrasilErrorResponse{
	StatusCode:   415,
	Error:        "Unsupported Media Type",
	ErrorMessage: "The server is refusing to service the request because the entity of the request is in a format not supported by the requested resource for the requested method.",
}
View Source
var InvalidProfile = YggdrasilErrorResponse{
	StatusCode:   403,
	Error:        "ForbiddenOperationException",
	ErrorMessage: "Invalid Token.",
}
View Source
var InvalidRequestBody = YggdrasilErrorResponse{
	StatusCode:   403,
	Error:        "ForbiddenOperationException",
	ErrorMessage: "Forbidden",
}
View Source
var InvalidRequestMethod = YggdrasilErrorResponse{
	StatusCode:   405,
	Error:        "Method Not Allowed",
	ErrorMessage: "Method Not Allowed",
}
View Source
var InvalidToken = YggdrasilErrorResponse{
	StatusCode:   403,
	Error:        "ForbiddenOperationException",
	ErrorMessage: "Invalid token.",
	Cause:        "Token is Invalid",
}
View Source
var LimitReached = YggdrasilErrorResponse{
	StatusCode:   429,
	Error:        "TooManyRequestsException",
	ErrorMessage: "Too Many Requests",
}
View Source
var Success = YggdrasilErrorResponse{
	StatusCode: 200,
}
View Source
var TokenAlreadyAssigned = YggdrasilErrorResponse{
	StatusCode:   400,
	Error:        "IllegalArgumentException",
	ErrorMessage: "Access token had already been assigned.",
}
View Source
var UserGone = YggdrasilErrorResponse{
	StatusCode:   410,
	Error:        "Gone",
	ErrorMessage: "Migrated",
}
View Source
var UserMigrated = YggdrasilErrorResponse{
	StatusCode:   400,
	Error:        "ForbiddenOperationException",
	ErrorMessage: "Account migrated, use email as username.",
	Cause:        "UserMigratedException",
}

Functions

This section is empty.

Types

type YggdrasilErrorResponse

type YggdrasilErrorResponse struct {
	StatusCode   int
	Error        string
	ErrorMessage string
	Cause        string
}

func (YggdrasilErrorResponse) JSON

func (r YggdrasilErrorResponse) JSON() []byte

func (YggdrasilErrorResponse) JSONString

func (r YggdrasilErrorResponse) JSONString() string

func (YggdrasilErrorResponse) String

func (r YggdrasilErrorResponse) String() string

Jump to

Keyboard shortcuts

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