Add an error code for invalid user names.

This commit is contained in:
David Baker 2016-01-14 17:19:04 +00:00
parent bd348b6810
commit 2301a792d7
2 changed files with 4 additions and 0 deletions

View file

@ -100,6 +100,7 @@ paths:
Part of the request was invalid. This may include one of the following error codes:
* ``M_USER_IN_USE`` : The desired user ID is already taken.
* ``M_INVALID_USER_NAME`` : The desired user ID is not a valid user name.
* ``M_EXCLUSIVE`` : The desired user ID is in the exclusive namespace
claimed by an application service.

View file

@ -86,6 +86,9 @@ Some requests have unique error codes:
:``M_USER_IN_USE``:
Encountered when trying to register a user ID which has been taken.
:``M_INVALID_USER_NAME``:
Encountered when trying to register a user ID which is not valid.
:``M_ROOM_IN_USE``:
Encountered when trying to create a room which has been taken.