Consistent working for error response

Also format json example better
This commit is contained in:
David Baker 2016-06-30 16:12:11 +01:00
parent 572aa24a88
commit a600386c05

View file

@ -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":