Software /
code /
prosody
Comparison
plugins/mod_pubsub/pubsub.lib.lua @ 9110:3dbecb399dfb
pubsub.lib: Add support for precondition-not-met error
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 04 Aug 2018 21:37:48 +0100 |
parent | 9109:31bf4b3abc7f |
child | 9115:fddebfaae7d9 |
comparison
equal
deleted
inserted
replaced
9109:31bf4b3abc7f | 9110:3dbecb399dfb |
---|---|
27 ["invalid-options"] = { "modify", "bad-request", nil, "invalid-options" }; | 27 ["invalid-options"] = { "modify", "bad-request", nil, "invalid-options" }; |
28 ["forbidden"] = { "auth", "forbidden" }; | 28 ["forbidden"] = { "auth", "forbidden" }; |
29 ["not-allowed"] = { "cancel", "not-allowed" }; | 29 ["not-allowed"] = { "cancel", "not-allowed" }; |
30 ["not-acceptable"] = { "modify", "not-acceptable" }; | 30 ["not-acceptable"] = { "modify", "not-acceptable" }; |
31 ["internal-server-error"] = { "wait", "internal-server-error" }; | 31 ["internal-server-error"] = { "wait", "internal-server-error" }; |
32 ["precondition-not-met"] = { "cancel", "conflict", nil, "precondition-not-met" }; | |
32 }; | 33 }; |
33 local function pubsub_error_reply(stanza, error) | 34 local function pubsub_error_reply(stanza, error) |
34 local e = pubsub_errors[error]; | 35 local e = pubsub_errors[error]; |
35 local reply = st.error_reply(stanza, t_unpack(e, 1, 3)); | 36 local reply = st.error_reply(stanza, t_unpack(e, 1, 3)); |
36 if e[4] then | 37 if e[4] then |