You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 line
367 B

  1. from fastapi import HTTPException
  2. UsernameAlreadyTaken = HTTPException(
  3. status_code=400,
  4. detail="A user with this name already exists."
  5. )
  6. InvalidUserName = HTTPException(
  7. status_code=400,
  8. detail="No user with this name exists."
  9. )
  10. InvalidPermissions = HTTPException(
  11. status_code=401,
  12. detail="You do not have permission for this action."
  13. )