title: Feathersjs hook error always returns a 500 error and html body
body: <p>I am using a before hook function to validate some query parameters. The problem is that when I throw a new error I always receive a 500 error code and an HTML body as follows, not a 400 as expected: </p>
  
  <p><a href="https://i.stack.imgur.com/Lvywj.png" rel="nofollow noreferrer">Response</a></p>
  
  <p>My hook function is the following:</p>
  
  <pre><code>const errors = require('@feathersjs/errors');
  function validateFindQueryParameters(options){
    return context =&gt; {
      const c = {...context};
      const q = c.params.query;
  
      if(!q.hasOwnProperty("ticketStatus") || q.ticketStatus === ""){
        throw new errors.BadRequest('ticketStatus is not present or empty');
      }
    }
  }
  </code></pre>