ColdCore/ctferror.py

12 lines
521 B
Python

SUCCESS = (0, "Success!")
FLAG_SUBMISSION_TOO_FAST = (1001, "You're submitting flags too fast!")
FLAG_SUBMITTED_ALREADY = (1002, "You've already solved that problem!")
FLAG_INCORRECT = (1003, "Incorrect flag.")
FLAG_CANNOT_SUBMIT_WHILE_DISABLED = (1004, "You cannot submit a flag for a disabled problem.")
CAPTCHA_NOT_COMPLETED = (2001, "Please complete the CAPTCHA.")
CAPTCHA_INVALID = (2002, "Invalid CAPTCHA response.")
NOTIFICATION_NOT_YOURS = (3001, "You cannot dismiss notifications that do not belong to you.")