Use HTTPException instead of BadStatusLine