Added getError method to Response class