Added method Response#isPending. Refactoring.