Skip to content

Commit

Permalink
oui-httpd: canonical the error code
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
  • Loading branch information
zhaojh329 committed Dec 14, 2020
1 parent 283945b commit 193d5d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oui-httpd/src/rpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 193d5d8

Please sign in to comment.