diff 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
line wrap: on
line diff
--- a/mod_rest/README.markdown	Mon Dec 30 05:14:49 2019 +0100
+++ b/mod_rest/README.markdown	Mon Dec 30 05:17:18 2019 +0100
@@ -82,6 +82,9 @@
 To accept the stanza without returning a reply, respond with HTTP status
 code `202` or `204`.
 
+HTTP status codes in the `4xx` and `5xx` range are mapped to an
+appropriate stanza error.
+
 For full control over the response, set the `Content-Type` header to
 `application/xmpp+xml` and return an XMPP stanza as an XML snippet.