use HttpNotFound for pull requests
fix errors