mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
REST endpoints now return specific HTTP codes on failure (fix #4278)
This commit is contained in:
parent
745b3b52d3
commit
ba2e44ddc6
37 changed files with 141 additions and 228 deletions
|
|
@ -200,10 +200,10 @@ function __LINE__() return debug.getinfo(2, 'l').currentline end
|
|||
|
||||
local http_status_code_map = {
|
||||
[200] = "OK",
|
||||
[400] = "Bad request",
|
||||
[400] = "Bad Request",
|
||||
[401] = "Unauthorized",
|
||||
[403] = "Forbidden",
|
||||
[404] = "Not found",
|
||||
[404] = "Not Found",
|
||||
[405] = "Method Not Allowed",
|
||||
[406] = "Not Acceptable",
|
||||
[408] = "Request timeout",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue