mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-26 21:14:09 +01:00
Use a before error codes.
This commit is contained in:
parent
9b037bab7c
commit
f8a91dfd22
|
|
@ -167,7 +167,7 @@ because the application service may have been updated.
|
|||
#### Unknown routes
|
||||
|
||||
If a request for an unsupported (or unknown) endpoint is received then the server
|
||||
must respond with 404 `M_UNRECOGNIZED` error.
|
||||
must respond with a 404 `M_UNRECOGNIZED` error.
|
||||
|
||||
Similarly, a 405 `M_UNRECOGNIZED` error is used to denote an unsupported method
|
||||
to a known endpoint.
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ then try again.
|
|||
|
||||
`M_UNRECOGNIZED`
|
||||
The server did not understand the request. This is expected to be returned with
|
||||
an 404 HTTP status code if the endpoint is not implemented or an 405 HTTP status
|
||||
a 404 HTTP status code if the endpoint is not implemented or a 405 HTTP status
|
||||
code if the endpoint is implemented, but the incorrect HTTP method is used.
|
||||
|
||||
`M_UNKNOWN`
|
||||
|
|
|
|||
|
|
@ -109,8 +109,8 @@ The request contained an unrecognised value, such as an unknown token or
|
|||
medium.
|
||||
|
||||
This is also used as the response if a server did not understand the request.
|
||||
This is expected to be returned with an 404 HTTP status code if the endpoint is
|
||||
not implemented or an 405 HTTP status code if the endpoint is implemented, but
|
||||
This is expected to be returned with a 404 HTTP status code if the endpoint is
|
||||
not implemented or a 405 HTTP status code if the endpoint is implemented, but
|
||||
the incorrect HTTP method is used.
|
||||
|
||||
`M_THREEPID_IN_USE`
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ notification provider (e.g. APNS, GCM).
|
|||
### Unsupported endpoints
|
||||
|
||||
If a request for an unsupported (or unknown) endpoint is received then the server
|
||||
must respond with 404 `M_UNRECOGNIZED` error.
|
||||
must respond with a 404 `M_UNRECOGNIZED` error.
|
||||
|
||||
Similarly, a 405 `M_UNRECOGNIZED` error is used to denote an unsupported method
|
||||
to a known endpoint.
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ Transparency](https://www.certificate-transparency.org/) project.
|
|||
### Unsupported endpoints
|
||||
|
||||
If a request for an unsupported (or unknown) endpoint is received then the server
|
||||
must respond with 404 `M_UNRECOGNIZED` error.
|
||||
must respond with a 404 `M_UNRECOGNIZED` error.
|
||||
|
||||
Similarly, a 405 `M_UNRECOGNIZED` error is used to denote an unsupported method
|
||||
to a known endpoint.
|
||||
|
|
|
|||
Loading…
Reference in a new issue