Added an isSuccess method to Response class