propagating error codes back over jsonrpc