title: How to set or change swagger 404 response type
body: <p>I generated an app using <strong>swagger-node</strong> (<a href="https://github.com/swagger-api/swagger-node" rel="nofollow noreferrer">https://github.com/swagger-api/swagger-node</a>). I am using the <strong>swagger validator</strong> to find validation errors. It works fine, I am catching errors and changing them to the response format I prefer.</p>
  
  <p><strong>I would like to handle also 404 error and return my own response.</strong> Swagger returns automatic response when URL of a nonexisting page is provided and I would like to change it to my response.</p>
  
  <p>Swagger response:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
  &lt;meta charset="utf-8"&gt;
  &lt;title&gt;Error&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;pre&gt;Cannot GET /fhello&lt;/pre&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I am looking for the way of changing it (to JSON).</p>