title: Changing HTTP status message using Sinatra
body: <p>I'm writing a simple Sinatra app, and given a user posts a request with an specific data, I want to return an error '453' (custom error code) with a message CLIENT_ERROR, or something similar.</p>
  
  <p>The problem is: looking into the Sinatra documentation and doing some testing I couldn't find a way to setup the response error message, only the response status.</p>
  
  <p>So, if a set the Sinatra response</p>
  
  <pre><code>get '/' do
     response.status = 453
  end
  </code></pre>
  
  <p>I get the error code right:</p>
  
  <pre><code>curl -v localhost:4567
  
  * About to connect() to localhost port 4567 (#0)
  *   Trying 127.0.0.1... connected
  &gt; GET / HTTP/1.1
  &gt; User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4     libidn/1.23 librtmp/2.3
  &gt; Host: localhost:4567
  &gt; Accept: */*
  &gt; 
  &lt; HTTP/1.1 453 
  &lt; X-Frame-Options: sameorigin
  &lt; X-XSS-Protection: 1; mode=block
  &lt; Content-Type: text/html;charset=utf-8
  &lt; Content-Length: 0
  &lt; Connection: keep-alive
  &lt; Server: thin 1.3.1 codename Triple Espresso
  &lt; 
  * Connection #0 to host localhost left intact
  * Closing connection #0
  </code></pre>
  
  <p>But what I want to have is:</p>
  
  <pre><code>&lt; HTTP/1.1 453 CLIENT_ERROR
  </code></pre>
  
  <p>The same way I have</p>
  
  <pre><code>&lt; HTTP/1.1 200 OK
  </code></pre>
  
  <p>When everything goes according to the plan.</p>
  
  <p>Is there anyway to do this using Sinatra/Rack?</p>