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 ¶
func (YggdrasilErrorResponse) JSON ¶
func (r YggdrasilErrorResponse) JSON() []byte
func (YggdrasilErrorResponse) JSONString ¶
func (r YggdrasilErrorResponse) JSONString() string
func (YggdrasilErrorResponse) String ¶
func (r YggdrasilErrorResponse) String() string
Click to show internal directories.
Click to hide internal directories.