Skip to content

Commit

Permalink
Add HTTP status code and link to C-S spec
Browse files Browse the repository at this point in the history
Signed-off-by: Tulir Asokan <tulir@maunium.net>
  • Loading branch information
tulir committed Mar 14, 2024
1 parent fe3b3e1 commit a496899
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions content/application-service-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,9 +436,11 @@ an application service-defined namespace will receive the same
`M_EXCLUSIVE` error code, but only if the application service has
defined the namespace as `exclusive`.
If either endpoint is called with the `m.login.application_service` login type,
but without a valid `as_token`, the endpoints will return an error with the
`M_MISSING_TOKEN` or `M_UNKNOWN_TOKEN` error code.
If `/register` or `/login` is called with the `m.login.application_service`
login type, but without a valid `as_token`, the endpoints will return an error
with the `M_MISSING_TOKEN` or `M_UNKNOWN_TOKEN` error code and 401 as the HTTP
status code. This is the same behavior as invalid auth in the client-server API
(see [Using access tokens](/client-server-api/#using-access-tokens)).
#### Pinging
Expand Down

0 comments on commit a496899

Please sign in to comment.