How throw meaningful errors from Companion

are you using the Standalone server? If you are using the standalone server, you can add a status property to the error like

err = new Error('some error message')
err.status = 400

and this status code will be relayed to the client instead.