title: override not_found sinatra application
body: <pre><code>sinatra (= 1.4.5)
  </code></pre>
  
  <p>I want to render a custom 404 message for specific routes, in this case, the text 'Not found'</p>
  
  <pre><code>class App &lt; Sinatra::Application 
  
    not_found do
      'You suck'
    end
  
    get '/404page' do
      halt 404, 'Not found'
    end 
  end
  </code></pre>
  
  <p>I have found that no matter what I do, the text from the <code>not_found block</code> is invoked any time response status is set to 404, when all I really want is the text from the halt.</p>
  
  <p>May be a duplicate of <a href="https://stackoverflow.com/questions/8452253/override-sinatra-default-notfound-error-page">Override Sinatra default NotFound error page</a> but I have not been able to find the soution.</p>