title: Cypress: Cannot stub request with cy.route()
body: <p>I have the below spec file : </p>
  
  <pre><code>describe('The First Page', () =&gt; {
    beforeEach(() =&gt; {
      cy.server();
      cy.route({
        method : 'GET',
        url: '**/v3/user/*',
        status: 204,
        response: {
          id: 1,
          firstName: 'Dev',
          lastName: 'Dev',
          email: 'dev1@gmail.com',  
        },
      });
    });
    it('successfully loads', () =&gt; {
      cy.visit('/dashboard/account');
    });
  });
  </code></pre>
  
  <p>By reading  <a href="https://docs.cypress.io/api/commands/route.html#Syntax" rel="nofollow noreferrer">the cypress documentation</a>, I thought that this is the way we can stub a http request to the web server. This is not working though as I expected since the http request to 'api/v3/user' returns 504 status. Is there a way to mock/stub a http request using any command of cypress ? I am using the </p>
  
  <blockquote>
    <p>whatwg-fetch</p>
  </blockquote>
  
  <p>module in order to make request in my application.</p>