title: What is "406-Not Acceptable Response" in HTTP?
body: <p>In my Ruby on Rails application I tried to upload an image through the POSTMAN <a href="http://en.wikipedia.org/wiki/Representational_State_Transfer">REST</a> client in <a href="http://en.wikipedia.org/wiki/Base64">Base64</a> format. When I POST the image I am getting a <em>406 Not Acceptable Response</em>. When I checked my database, the image was there and was successfully saved.</p>
  
  <p>What is the reason for this error, is there anything I need to specify in my header?</p>
  
  <p>My request:</p>
  
  <p>URL ---    <code>http://localhost:3000/exercises.json</code></p>
  
  <p>Header:</p>
  
  <pre><code>Content-Type  -  application/json
  </code></pre>
  
  <p>Raw data:</p>
  
  <pre><code>{
      "exercise": {
          "subbodypart_ids": [
              "1",
              "2"
          ],
          "name": "Exercise14"
      },
      "image_file_name": "Pressurebar Above.jpg",
      "image":"******base64 Format*******"
  }
  </code></pre>