Consistent working for error response
Also format json example better
This commit is contained in:
parent
572aa24a88
commit
a600386c05
1 changed files with 9 additions and 6 deletions
|
@ -177,13 +177,16 @@ paths:
|
||||||
type: object
|
type: object
|
||||||
400:
|
400:
|
||||||
description: |-
|
description: |-
|
||||||
Returns an error object indicating the nature of the error. A Home Server may use
|
The request was invalid. An errcode of ``M_THREEPID_IN_USE`` is used to inform the user
|
||||||
``M_THREEPID_IN_USE`` to inform the user that the email address is already registered
|
that the email address is already registered to an account on this server, however,
|
||||||
to an account on this server, however, if the home server has the ability to send email,
|
if the home server has the ability to send email, it is recommended that the server
|
||||||
it is recommended that the server instead send an email to the user with instructions
|
instead send an email to the user with instructions on how to reset their password.
|
||||||
on how to reset their password.
|
|
||||||
examples:
|
examples:
|
||||||
application/json: '{"errcode": "M_THREEPID_IN_USE", "error": "The specified address is already in use"}'
|
application/json: |-
|
||||||
|
{
|
||||||
|
"errcode": "M_THREEPID_IN_USE",
|
||||||
|
"error": "The specified address is already in use"
|
||||||
|
}
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
"/account/password":
|
"/account/password":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue