diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2023-08-28 17:20:50 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2023-08-28 17:20:50 +0300 |
commit | aa561c5be606c14cfd211df694ef0be856195df7 (patch) | |
tree | 39ccc1a054b71dc1249bb4f8d9dd1909f91e1508 /xmpp | |
parent | 20994e29953dfc9c238f69d919912e0c26e36b97 (diff) |
Version 1.8.0v1.8.0
Diffstat (limited to 'xmpp')
-rw-r--r-- | xmpp/handlers.go | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/xmpp/handlers.go b/xmpp/handlers.go index fdcf647..4c27b3c 100644 --- a/xmpp/handlers.go +++ b/xmpp/handlers.go @@ -624,35 +624,35 @@ func iqAnswerSetError(answer *stanza.IQ, payload *extensions.QueryRegister, code switch code { case 400: answer.Error = &stanza.Err{ - Code: code, - Type: stanza.ErrorTypeModify, + Code: code, + Type: stanza.ErrorTypeModify, Reason: "bad-request", } case 405: answer.Error = &stanza.Err{ - Code: code, - Type: stanza.ErrorTypeCancel, + Code: code, + Type: stanza.ErrorTypeCancel, Reason: "not-allowed", - Text: "Logging out is dangerous. If you are sure you would be able to receive the authentication code again, issue the /logout command to the transport", + Text: "Logging out is dangerous. If you are sure you would be able to receive the authentication code again, issue the /logout command to the transport", } case 406: answer.Error = &stanza.Err{ - Code: code, - Type: stanza.ErrorTypeModify, + Code: code, + Type: stanza.ErrorTypeModify, Reason: "not-acceptable", - Text: "Phone number already provided, chat with the transport for further instruction", + Text: "Phone number already provided, chat with the transport for further instruction", } case 500: answer.Error = &stanza.Err{ - Code: code, - Type: stanza.ErrorTypeWait, + Code: code, + Type: stanza.ErrorTypeWait, Reason: "internal-server-error", } default: log.Error("Unknown error code, falling back with empty reason") answer.Error = &stanza.Err{ - Code: code, - Type: stanza.ErrorTypeCancel, + Code: code, + Type: stanza.ErrorTypeCancel, Reason: "undefined-condition", } } |