26 lines
1.9 KiB
Go
26 lines
1.9 KiB
Go
package apperr
|
|
|
|
const LogsErrorMessage = "Access to the requested resource is forbidden due to incorrect password and/or username."
|
|
const BodyErrorMessage = "The request cannot be processed due to a mismatch in the format of the body."
|
|
const IdUint32ErrorMessage = "The server expects the ID to be in the format of an unsigned 32-bit integer (uint32)."
|
|
const ArticleNotFoundErrorMessage = "Article not found"
|
|
const ImageNotFoundErrorMessage = "Image not found"
|
|
const DisplayNameErrorMessage = "Display name must be 60 characters or fewer."
|
|
const ArticleTitleErrorMessage = "Article title must be between 3 and 200 characters."
|
|
const RegistrationClosedErrorMessage = "You are not allowed to create a user. Log in or reset database."
|
|
const RegistrationFailedErrorMessage = "Registration failed. Please try again later."
|
|
const UnauthorizedErrorMessage = "You must be logged in to access this resource."
|
|
const VerificationFailedErrorMessage = "The verification code is invalid or has expired."
|
|
const AlreadyVerifiedErrorMessage = "This account is already verified and cannot be cancelled this way."
|
|
const VerificationRequiredErrorMessage = "You must verify your account to access this resource."
|
|
const PasswordResetRequestedMessage = "If an account exists for that email, a password reset link has been sent."
|
|
const PasswordResetFailedErrorMessage = "The password reset code is invalid or has expired."
|
|
const TooManyRequestsErrorMessage = "Too many requests. Please try again later."
|
|
const EmailHasAccountErrorMessage = "This address already has an account."
|
|
const PendingInviteErrorMessage = "There's already a pending invite for this address."
|
|
const InviteNotSentErrorMessage = "Couldn't send the invite. Try again in a moment."
|
|
const InviteInvalidErrorMessage = "This invite link doesn't work."
|
|
const InviteExpiredErrorMessage = "This invite has expired."
|
|
const OwnerRequiredErrorMessage = "Only the owner can do this."
|
|
const UsernameTakenErrorMessage = "That username is taken. Try another."
|