mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
net.http.errors: Add error class for DNS resolution failures (thanks SouL)
This commit is contained in:
parent
9d303c4eed
commit
8678cc2915
1 changed files with 4 additions and 0 deletions
|
@ -40,6 +40,10 @@ local error_templates = {
|
|||
code = 0, type = "modify", condition = "bad-request";
|
||||
text = "Invalid URL";
|
||||
};
|
||||
["unable to resolve service"] = {
|
||||
code = 0, type = "cancel", condition = "remote-server-not-found";
|
||||
text = "DNS resolution failed";
|
||||
};
|
||||
|
||||
-- This doesn't attempt to map every single HTTP code (not all have sane mappings),
|
||||
-- but all the common ones should be covered. XEP-0086 was used as reference for
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue