Adding the JSON-API serialization of errors to the example app.