Software /
code /
prosody
Comparison
plugins/mod_pubsub/pubsub.lib.lua @ 9076:00d89430d77e
pubsub.lib: Support for not-acceptable error
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 01 Aug 2018 19:18:25 +0100 |
parent | 9072:9603a6a1ec85 |
child | 9096:7de4eec02ece |
comparison
equal
deleted
inserted
replaced
9075:46d4322f7eed | 9076:00d89430d77e |
---|---|
25 ["item-not-found"] = { "cancel", "item-not-found" }; | 25 ["item-not-found"] = { "cancel", "item-not-found" }; |
26 ["not-subscribed"] = { "modify", "unexpected-request", nil, "not-subscribed" }; | 26 ["not-subscribed"] = { "modify", "unexpected-request", nil, "not-subscribed" }; |
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 ["internal-server-error"] = { "wait", "internal-server-error" }; | 31 ["internal-server-error"] = { "wait", "internal-server-error" }; |
31 }; | 32 }; |
32 local function pubsub_error_reply(stanza, error) | 33 local function pubsub_error_reply(stanza, error) |
33 local e = pubsub_errors[error]; | 34 local e = pubsub_errors[error]; |
34 local reply = st.error_reply(stanza, t_unpack(e, 1, 3)); | 35 local reply = st.error_reply(stanza, t_unpack(e, 1, 3)); |