Mercurial > prosody-modules
comparison mod_rest/README.markdown @ 3797:ed5d7586a61e
mod_rest: Map various HTTP status codes to XMPP stanza errors
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 30 Dec 2019 05:17:18 +0100 |
parents | d1ad10b76b00 |
children | cfa00eea896f |
comparison
equal
deleted
inserted
replaced
3796:d1ad10b76b00 | 3797:ed5d7586a61e |
---|---|
80 ### Replying | 80 ### Replying |
81 | 81 |
82 To accept the stanza without returning a reply, respond with HTTP status | 82 To accept the stanza without returning a reply, respond with HTTP status |
83 code `202` or `204`. | 83 code `202` or `204`. |
84 | 84 |
85 HTTP status codes in the `4xx` and `5xx` range are mapped to an | |
86 appropriate stanza error. | |
87 | |
85 For full control over the response, set the `Content-Type` header to | 88 For full control over the response, set the `Content-Type` header to |
86 `application/xmpp+xml` and return an XMPP stanza as an XML snippet. | 89 `application/xmpp+xml` and return an XMPP stanza as an XML snippet. |
87 | 90 |
88 ``` {.xml} | 91 ``` {.xml} |
89 HTTP/1.1 200 Ok | 92 HTTP/1.1 200 Ok |