Throwing the HTTPException corretly