title: Spring-cloud-contract stubrunner test run failing due to 404
body: <p>I am getting the following error when I run my client application using stubrunner</p>
  
  <pre><code>    Getting org.springframework.web.client.HttpClientErrorException: 404    
  at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:63)  
  at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:700)
  </code></pre>
  
  <p>wiremock is giving the following information</p>
  
  <pre><code>    {
    "url" : "/app/crm/customer/40",
    "absoluteUrl" : "http://localhost:6565/app/crm/customer/40",
    "method" : "GET",
    "clientIp" : "127.0.0.1",
    "headers" : {
      "accept" : "text/plain, text/plain, application/json, application/json, application/*+json, application/*+json, */*, */*",
      "domain" : "IND",
      "host" : "localhost:6565",
      "connection" : "Keep-Alive",
      "user-agent" : "Apache-HttpClient/4.5.3 (Java/1.8.0_144)",
      "accept-encoding" : "gzip,deflate"
    },
    "cookies" : { },
    "browserProxyRequest" : false,
    "loggedDate" : 1508757427831,
    "bodyAsBase64" : "",
    "body" : "",
    "loggedDateString" : "2017-10-23T11:17:07Z"
  }
  Closest match:
  {
    "urlPattern" : "/app/crm/customer/[0-9]{2}",
    "method" : "GET",
    "headers" : {
      "Content-Type" : {
        "equalTo" : "application/json"
      },
      "domain" : {
        "equalTo" : "IND"
      }
    }
  }
  </code></pre>
  
  <p>My Contract looks like this</p>
  
  <pre><code>    package contracts
  
  import org.springframework.cloud.contract.spec.Contract
  
  Contract.make {
  
      request {
          method 'GET'
          url value(consumer(regex('/app/crm/customer/[0-9]{2}')), producer('/app/crm/customer/40'))
          headers {
             contentType(applicationJson())
  
           }   
      }
  
      response {
          status 200
          headers {
              contentType(applicationJson())
          }
      }
  }
  </code></pre>
  
  <p>I tried to resolve the issue by changing content types and other details.where am I doing mistake. Thanks.</p>