How to response error in feathersjs service to client?
<p>I followed this link '<a href="https://docs.feathersjs.com/services/readme.html" rel="nofollow noreferrer">https://docs.feathersjs.com/services/readme.html</a>' to create a restful service by feathersjs. It works fine for normal case. But I don't know how to response an error message to client, like 404, 500, etc. Below is the service code. It returns response via promise.resolve. How to return an error in this case?</p>

<pre><code>class MessageService {
  get(id, params) {
    return Promise.resolve({
      id,
      read: false,
      text: `Feathers is great!`,
      createdAt: new Date.getTime()
    });
  }
}
</code></pre>