 Pepys was appointed as Solicitor General for England and Wales, requiring a by-election.Pepys was appointed as First Lord Commissioner for the Custody of the Great Seal, requiring a by-election.Pepys resigned after being appointed as Lord Chancellor and being elevated to the peerage, becoming 1st Earl of Cottenham, requiring a by-election.