change error response from JSON to MsgPack