title: Gatling Load test Error : 406 not acceptable on Response
body: <p>I am new to the gatling load test. And i want to load test my simple project.But I got the error on response(406 not acceptable) and  my gatling code is below</p>
  
  <pre><code>import io.gatling.core.Predef._
  import io.gatling.http.Predef._
  
  class simu extends Simulation {
  
  
  val httpConf = http
  .baseURL("http://172.24.15.225:10050/sample")
  .header(HttpHeaderNames.Accept, HttpHeaderValues.ApplicationJson)
  .acceptHeader("application/json, text/plain, */*")
  .acceptEncodingHeader("gzip, deflate")
  .acceptLanguageHeader("en-US,en;q=0.5")
  
  val scn = scenario("Scenario Name")
  .exec(
    http("request_1")
    .post("http://172.24.15.225:10050/sample")
      .header(HttpHeaderNames.Accept, HttpHeaderValues.ApplicationJson)
      //.check(status.is(406))
     .body(StringBody("""{ "inputData": "Wonderful" }""")).asJSON
  )
  
  setUp(scn.inject(atOnceUsers(30)).protocols(httpConf))
  } 
  </code></pre>
  
  <p>And the response for the above is</p>
  
  <pre><code>failed in Response
      Errors ------------------------------------------------------------
       status.find.in(200,304,201,202,203,204,205,206,207,208,209),       
      but actually found 406
  </code></pre>
  
  <p>someone please correct my code.
  But the RestAPI(postman) returns response correctly.</p>