The REST adapter for strong-remoting sets up its own error handler! So you cannot accomplish this for REST API related calls by replacing:
app.use(loopback.errorHandler());inserver/server.js- or,
loopback#errorHandlerinmiddleware.json
So don't waste your time there.