Wrap response body with auto-define resource class