summaryrefslogtreecommitdiff
path: root/src/services
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-08 07:10:31 +0200
committerGitHub <noreply@github.com>2022-04-08 07:10:31 +0200
commit5399a8f75b5a44dd789101844d52b5f9c4e301f9 (patch)
treee943d2dbdf44e454f7d0d91d3a7c7a0f7f522b67 /src/services
parent44c67e54ef6ecdf4d7b62e765ccfa4e724c14316 (diff)
parent84bfac85a711d22d97e1ee39a5233738e14a7750 (diff)
downloadvyos-1x-5399a8f75b5a44dd789101844d52b5f9c4e301f9.tar.gz
vyos-1x-5399a8f75b5a44dd789101844d52b5f9c4e301f9.zip
Merge pull request #1277 from jestabro/api-smoketest
T4347: Bug fix and extension of HTTP smoketest
Diffstat (limited to 'src/services')
-rwxr-xr-xsrc/services/vyos-http-api-server2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/vyos-http-api-server b/src/services/vyos-http-api-server
index 1000d8b72..c1b595412 100755
--- a/src/services/vyos-http-api-server
+++ b/src/services/vyos-http-api-server
@@ -352,7 +352,7 @@ class MultipartRoute(APIRoute):
return error(e.status_code, e.detail)
except Exception as e:
if request.ERR_MISSING_KEY:
- return error(422, "Valid API key is required")
+ return error(401, "Valid API key is required")
if request.ERR_MISSING_DATA:
return error(422, "Non-empty data field is required")
if request.ERR_NOT_JSON: