code: function httpDecorated(config) {
  				var tConfig = applyRequestInterceptors(angular.copy(config));
  				var mock = getMock(tConfig);
  				var response;
  				if (mock) {
  					response = angular.isFunction(mock.config) ?
  						mock.config(tConfig.method, tConfig.url, tConfig.params, tConfig.data, tConfig.headers) :
  						angular.copy(mock.response);
  				}
  				if (!angular.isObject(response)) {
  					return delay(mock, $http(config));
  				}
  
  				response.config = tConfig;
  				response.headers = headersGetter(response.headers);
  
  				response = applyResponseInterceptors(response);
  				return delay(mock, responsePromise(response));
  			}
docs: $http decorator that mocks requests matching configuration
  @param config
  @returns {*}