         )
         
         // execute REST request
-        request.responseObject(dataToError: dataToError) {
+        request.responseObject(responseToError: responseToError) {
             (response: RestResponse<ImagesWithFaces>) in
             switch response.result {
             case .success(let classifiedImages): success(classifiedImages)

        request.responseData { response in
            switch response.result {
            case .success(let data):
                switch self.dataToError(data: data) {
                case .some(let error): failure?(error)
                case .none: success?()
                }

        request.responseData { response in
            switch response.result {
            case .success(let data):
                switch self.responseToError(response: response.response, data: data) {
                case .some(let error): failure?(error)
                case .none: success?()
                }
