title: Intercept $http request and return response without server request
body: <p>I want to, on certain http requests, return data from memory rather than letting it hit the server.  I know I can write http interceptors but I'm not sure how to actually return the response from the request?</p>
  
  <pre><code>myModule.factory('myHttpInterceptor', function ($q) {
      return {
          // optional method
          'request': function (config) {
              // return my data here [200], and stop the call from going through
              return config;
          }
      };
  });
  </code></pre>