aboutsummaryrefslogtreecommitdiffstats
path: root/net/http/codes.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-08-18 17:36:46 +0200
committerKim Alvefur <zash@zash.se>2016-08-18 17:36:46 +0200
commit5ce8cd7c944d2e59621a79fb0fdc51a49f42af5e (patch)
treea89e877c6e83d9aa3b79825812361591bf12bf2e /net/http/codes.lua
parent2d2c10e83b62fbe72ac90043eca1c90d60a8cee5 (diff)
parent33a8994b3cf6aabe428b7cdf6bba7bdf68d9c366 (diff)
downloadprosody-5ce8cd7c944d2e59621a79fb0fdc51a49f42af5e.tar.gz
prosody-5ce8cd7c944d2e59621a79fb0fdc51a49f42af5e.zip
Merge 0.10->trunk
Diffstat (limited to 'net/http/codes.lua')
-rw-r--r--net/http/codes.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/http/codes.lua b/net/http/codes.lua
index bc31c7dd..1090e545 100644
--- a/net/http/codes.lua
+++ b/net/http/codes.lua
@@ -55,6 +55,7 @@ local response_codes = {
[428] = "Precondition Required";
[429] = "Too Many Requests";
[431] = "Request Header Fields Too Large";
+ [451] = "Unavailable For Legal Reasons";
[500] = "Internal Server Error";
[501] = "Not Implemented";
@@ -70,4 +71,4 @@ local response_codes = {
};
for k,v in pairs(response_codes) do response_codes[k] = k.." "..v; end
-return setmetatable(response_codes, { __index = function(t, k) return k.." Unassigned"; end })
+return setmetatable(response_codes, { __index = function(_, k) return k.." Unassigned"; end })