constants.py 468 B

12345678910111213
  1. from enum import Enum
  2. class MESSAGES(str, Enum):
  3. DEFAULT = lambda msg="": f"{msg if msg else ''}"
  4. class ERROR_MESSAGES(str, Enum):
  5. DEFAULT = lambda err="": f"Something went wrong :/\n{err if err else ''}"
  6. UNAUTHORIZED = "401 Unauthorized"
  7. NOT_FOUND = "We could not find what you're looking for :/"
  8. USER_NOT_FOUND = "We could not find what you're looking for :/"
  9. MALICIOUS = "Unusual activities detected, please try again in a few minutes."