From 193d5d81791f21e2e4aae8c541f52e5c29c492e6 Mon Sep 17 00:00:00 2001 From: Jianhui Zhao Date: Mon, 14 Dec 2020 18:12:18 +0800 Subject: [PATCH] oui-httpd: canonical the error code Signed-off-by: Jianhui Zhao --- oui-httpd/src/rpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oui-httpd/src/rpc.c b/oui-httpd/src/rpc.c index 0962cfb8..b16e7969 100644 --- a/oui-httpd/src/rpc.c +++ b/oui-httpd/src/rpc.c @@ -50,8 +50,8 @@ static const struct { [ERROR_CODE_INVALID_PARAMS] = {-32602, "Invalid params"}, [ERROR_CODE_INTERNAL_ERROR] = {-32603, "Internal error"}, [ERROR_CODE_ACCESS] = {-32000, "Access denied"}, - [ERROR_CODE_NOT_FOUND] = {-32002, "Not found"}, - [ERROR_CODE_TIMEOUT] = {-32001, "Timeout"} + [ERROR_CODE_NOT_FOUND] = {-32001, "Not found"}, + [ERROR_CODE_TIMEOUT] = {-32002, "Timeout"} }; struct rpc_exec_context {