Is there a better way to return error data to the client other than using the `message` field?

Original message was deleted