title: Convert String error response to Http Status code
body: <p>In Java+Spring application I am using, from a third party called over <code>RestTemplate</code> , we get the error response in the JSON with 200 response code.</p>
  
  <p>e.g </p>
  
  <pre><code>{
      "errors": [{
          "reason": "did not like the request",
          "error": "BAD_REQUEST"
      }]
  }
  </code></pre>
  
  <p>How can I convert <code>BAD_REQUEST</code> to the 400 integer representations.
  Apache <code>HttpStatus</code> inte does not seem to provide any interface to do so.</p>