title: What HTTP status code should I return for POST when no resource is created?
body: <p>I am posting an image to my server (usign Java and Spring).</p>
  
  <p>A couple of things can happen:</p>
  
  <ul>
  <li>If everything goes well, then I return <code>200</code> and the image id.</li>
  <li>The image can't be saved to the file system (<code>SaveFileException</code>). </li>
  <li>The database can't update the new image record with the new URL (<code>DatabaseException</code>).</li>
  <li>Or throw an <code>IOException</code>. </li>
  </ul>
  
  <p>In short, I can not save/create the image.</p>
  
  <p>What HTTP code should I return? </p>
  
  <p>Should I return more than one code and more than one message according to the <code>Exception</code>?</p>