title: Error handling in HAPI
body: <p>Catch all and any errors in a hapi request lifecycle.
  I have a signup handler, </p>
  
  <pre><code>public signup(request: Hapi.Request, reply: Hapi.Base_Reply) {
      this.database.user.create(request.payload).then((user: any) =&gt; {
          return reply({
              "success": true
          });
      }).catch((err) =&gt; {
          reply(Boom.conflict('User with the given details already exists'));
      });
  }
  </code></pre>
  
  <p>Now, I am catching the error, but I can't be always sure that I will get this error message only. What if there is an error in the database? 
  How to catch such database errors or any other unknown errors for all the requests. ???</p>