diff options
author | Kim Alvefur <zash@zash.se> | 2019-12-14 20:28:44 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-12-14 20:28:44 +0100 |
commit | 1ac8dabcf5cd07b82745e00f91b161e03bf120a4 (patch) | |
tree | 0a95c01ae6126380af2c12b5fea24030106aaf0f /util | |
parent | 8669c1bbd464f984a656eb423b5e97de466aeaca (diff) | |
download | prosody-1ac8dabcf5cd07b82745e00f91b161e03bf120a4.tar.gz prosody-1ac8dabcf5cd07b82745e00f91b161e03bf120a4.zip |
util.error: Move default for numeric error code to net.http.server
Stanza errors can also have numbers but these are a legacy thing and
rarely used, except in MUC. HTTP errors on the other hand always have a
number.
Diffstat (limited to 'util')
-rw-r--r-- | util/error.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/error.lua b/util/error.lua index 461bf385..ca960dd9 100644 --- a/util/error.lua +++ b/util/error.lua @@ -21,7 +21,7 @@ local function new(e, context, registry) type = template.type or "cancel"; condition = template.condition or "undefined-condition"; text = template.text; - code = template.code or 500; + code = template.code; context = context or template.context or { _error_id = e }; }, error_mt); |