Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AuthorErasureDisabledError = Error{
Message: "author erasure is disabled; set gdprAuthorErasure.enabled = true in settings.json to enable GDPR Art. 17 erasure",
Error: 403,
}
AuthorErasureDisabledError: gdprAuthorErasure.enabled is off, the default (opt-in as in etherpad-lite).
var AuthorNotFoundError = Error{
Message: "Author not found",
Error: 404,
}
var DataRetrievalError = Error{
Message: "Failed to retrieve data",
Error: 500,
}
var ForbiddenError = Error{
Message: "Access forbidden",
Error: 403,
}
var InternalApiError = Error{
Message: "Internal API Error",
Error: 1,
}
var InternalServerError = Error{
Message: "Internal server error",
Error: 500,
}
var InvalidParameterError = Error{
Message: "Invalid parameter provided",
Error: 422,
}
var InvalidRequestError = Error{
Message: "Invalid request",
Error: 400,
}
var InvalidRevisionError = Error{
Message: "Invalid revision number",
Error: 400,
}
var NotAGroupPadError = Error{
Message: "You can only get/set the publicStatus of pads that belong to a group",
Error: 400,
}
NotAGroupPadError mirrors the original Etherpad checkGroupPad guard: public status can only be read or changed on pads that belong to a group.
var PadAlreadyExistsError = Error{
Message: "Pad already exists",
Error: 409,
}
var PadNotFoundError = Error{
Message: "Pad not found",
Error: 404,
}
var RevisionHigherThanHeadError = Error{
Message: "Revision number is higher than head",
Error: 400,
}
var RevisionNotFoundError = Error{
Message: "Revision not found",
Error: 404,
}
var TextConversionError = Error{
Message: "Failed to convert text",
Error: 500,
}
Message: "Unauthorized access",
Error: 401,
}
var ValidationError = Error{
Message: "Validation failed",
Error: 422,
}
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
Message string `json:"message" example:"Pad not found"`
Error int `json:"error" example:"404"`
}
Error represents an API error @Description Standardized API error response