Applying a common model to Plugin/Gateway error responses

We require a common error structure in the body of the response. E.g.

{ "errors": [ { "code" : "GW500", "message": "Oops..."} ] }

Is it possible to apply a common model to plugin generated error responses?