getError returns null when response is null