Skip to content

Latest commit

 

History

History
61 lines (59 loc) · 1.33 KB

ErrorList.md

File metadata and controls

61 lines (59 loc) · 1.33 KB
throw new customError("InvalidToken", error.message, 403, 1);
throw new customError("ExpiredToken", "El token ah expirado", 403, 2);
throw new customError("BlackList","El token se encuentra en lista negra, se rechazo la conexion",403,3)
throw new customError(
    "InvalidCredentials",
    "Este mail no tiene un usuario asociado",
    400,
    4
  );
  throw new customError(
    "InvalidCredentials",
    "Contraseña incorrecta",
    404,
    5,
    {
      attempts: await credentialsServices.getAttemptsNumber(credentials.id),
    }
  );
throw new customError(
    "RejectedAction",
    "Accion rechazada por falta de acceso o bloqueo de esta misma",
    403,
    6,
    {
      reason: { name: "UnverifiedAccount", via: "signin" },
    }
  );
throw new customError("nonexistentUser", "Este usuario no existe", 404, 7);
throw new customError("MissedAuthToken","Un token de autenticacion debe ser proporcionado",401,8,{
  method:""
})
throw new customError("MissedData","Informacion invalida, alterada o con un formato invalido ah sido ingresada",400,9,{
  method:"",
  details:[]
})
throw new customError("FailedMailConnection","Something went wrong while connecting with the SMTP provider",500,41,{
    provider:"Google",
    typeOfConnection:"SMTP"
  })