Software /
code /
prosody-modules
Comparison
mod_rest/mod_rest.lua @ 4532:183c2abdc3c4
mod_rest: Fix name of entry in error registry for unauth 'from'
Wow was this a pain to track down or what?
Symptoms: An error with condition: undefined-condition. No further details.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 23 Mar 2021 23:41:10 +0100 |
parent | 4526:23b681214be3 |
child | 4699:a8af632daf48 |
comparison
equal
deleted
inserted
replaced
4531:60fe204b980f | 4532:183c2abdc3c4 |
---|---|
205 parse = { code = 400, condition = "not-well-formed", text = "Failed to parse payload", }, | 205 parse = { code = 400, condition = "not-well-formed", text = "Failed to parse payload", }, |
206 xmlns = { code = 422, condition = "invalid-namespace", text = "'xmlns' attribute must be empty", }, | 206 xmlns = { code = 422, condition = "invalid-namespace", text = "'xmlns' attribute must be empty", }, |
207 name = { code = 422, condition = "unsupported-stanza-type", text = "Invalid stanza, must be 'message', 'presence' or 'iq'.", }, | 207 name = { code = 422, condition = "unsupported-stanza-type", text = "Invalid stanza, must be 'message', 'presence' or 'iq'.", }, |
208 to = { code = 422, condition = "improper-addressing", text = "Invalid destination JID", }, | 208 to = { code = 422, condition = "improper-addressing", text = "Invalid destination JID", }, |
209 from = { code = 422, condition = "invalid-from", text = "Invalid source JID", }, | 209 from = { code = 422, condition = "invalid-from", text = "Invalid source JID", }, |
210 post_auth = { code = 403, condition = "not-authorized", text = "Not authorized to send stanza with requested 'from'", }, | 210 from_auth = { code = 403, condition = "not-authorized", text = "Not authorized to send stanza with requested 'from'", }, |
211 iq_type = { code = 422, condition = "invalid-xml", text = "'iq' stanza must be of type 'get' or 'set'", }, | 211 iq_type = { code = 422, condition = "invalid-xml", text = "'iq' stanza must be of type 'get' or 'set'", }, |
212 iq_tags = { code = 422, condition = "bad-format", text = "'iq' stanza must have exactly one child tag", }, | 212 iq_tags = { code = 422, condition = "bad-format", text = "'iq' stanza must have exactly one child tag", }, |
213 mediatype = { code = 415, condition = "bad-format", text = "Unsupported media type" }, | 213 mediatype = { code = 415, condition = "bad-format", text = "Unsupported media type" }, |
214 }); | 214 }); |
215 | 215 |