Add standard error responses (MSC3743). (#1347)
This commit is contained in:
parent
dfc8a2e184
commit
eeb43043ad
10 changed files with 41 additions and 3 deletions
|
@ -37,6 +37,16 @@ notification provider (e.g. APNS, GCM).
|
|||
Mobile Device or Client
|
||||
```
|
||||
|
||||
## API standards
|
||||
|
||||
### Unsupported endpoints
|
||||
|
||||
If a request for an unsupported (or unknown) endpoint is received then the server
|
||||
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.
|
||||
|
||||
## Homeserver behaviour
|
||||
|
||||
This describes the format used by "HTTP" pushers to send notifications
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue