Implemented success handler which should return the response of the request.