title: How to Throw Custom 404 Messages in Python Bottle
body: <p>With Python's Bottle framework, I'm trying to catch all 404s and replace the framework's output with my own.</p>
  
  <p>How do I catch all thrown 404s and replace them with my own output?</p>
  
  <p>So far, I've reduced my application to nothing but one that throws 404s, and it still outputs the framework's "Error: 404 Not Found" output instead of "Nothing here, sorry".  My application is below.</p>
  
  <pre><code>from bottle import Bottle, error
  
  """App Instantiation"""
  app = application = Bottle()
  
  @error(404)
  def error404(error):
      return 'Nothing here, sorry'
  </code></pre>