Use a before error codes.

This commit is contained in:
Patrick Cloke 2022-11-22 10:48:59 -05:00
parent 9b037bab7c
commit f8a91dfd22
5 changed files with 6 additions and 6 deletions

View file

@ -167,7 +167,7 @@ because the application service may have been updated.
#### Unknown routes #### Unknown routes
If a request for an unsupported (or unknown) endpoint is received then the server 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 Similarly, a 405 `M_UNRECOGNIZED` error is used to denote an unsupported method
to a known endpoint. to a known endpoint.

View file

@ -109,7 +109,7 @@ then try again.
`M_UNRECOGNIZED` `M_UNRECOGNIZED`
The server did not understand the request. This is expected to be returned with 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. code if the endpoint is implemented, but the incorrect HTTP method is used.
`M_UNKNOWN` `M_UNKNOWN`

View file

@ -109,8 +109,8 @@ The request contained an unrecognised value, such as an unknown token or
medium. medium.
This is also used as the response if a server did not understand the request. 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 This is expected to be returned with a 404 HTTP status code if the endpoint is
not implemented or an 405 HTTP status code if the endpoint is implemented, but not implemented or a 405 HTTP status code if the endpoint is implemented, but
the incorrect HTTP method is used. the incorrect HTTP method is used.
`M_THREEPID_IN_USE` `M_THREEPID_IN_USE`

View file

@ -42,7 +42,7 @@ notification provider (e.g. APNS, GCM).
### Unsupported endpoints ### Unsupported endpoints
If a request for an unsupported (or unknown) endpoint is received then the server 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 Similarly, a 405 `M_UNRECOGNIZED` error is used to denote an unsupported method
to a known endpoint. to a known endpoint.

View file

@ -87,7 +87,7 @@ Transparency](https://www.certificate-transparency.org/) project.
### Unsupported endpoints ### Unsupported endpoints
If a request for an unsupported (or unknown) endpoint is received then the server 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 Similarly, a 405 `M_UNRECOGNIZED` error is used to denote an unsupported method
to a known endpoint. to a known endpoint.