diff options
author | Vitor Mattos <vitor@php.rio> | 2022-02-10 16:24:10 +0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2022-02-15 18:49:54 +0300 |
commit | 0a62079b1754e587138b5732a5e92838859fcde0 (patch) | |
tree | 1ee82efee170a35c68ecfe003d051c8be77c4787 /docs | |
parent | 1a8f3f41cd9a421235ff7181835489a52c65992b (diff) |
Make the status code more specific
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/reaction.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/reaction.md b/docs/reaction.md index 183aae338..5fc16e9f6 100644 --- a/docs/reaction.md +++ b/docs/reaction.md @@ -17,7 +17,7 @@ Base endpoint is: `/ocs/v2.php/apps/spreed/api/v1` - Status code: + `200 OK` Reaction already exists + `201 Created` - + `400 Bad Request` In case of any other error + + `400 Bad Request` In case of no reaction support, message out of reactions context or any other error + `404 Not Found` When the conversation or message to react could not be found for the participant + `409 Conflict` User already did this reaction to this message @@ -35,7 +35,7 @@ Base endpoint is: `/ocs/v2.php/apps/spreed/api/v1` * Response: - Status code: + `201 Created` - + `400 Bad Request` In case of any other error + + `400 Bad Request` In case of no reaction support, message out of reactions context or any other error + `404 Not Found` When the conversation or message to react or reaction could not be found for the participant ## Retrieve reactions of a message by type @@ -52,6 +52,7 @@ Base endpoint is: `/ocs/v2.php/apps/spreed/api/v1` * Response: - Status code: + `200 OK` + + `400 Bad Request` In case of no reaction support, message out of reactions context or any other error + `404 Not Found` When the conversation or message to react could not be found for the participant - Data: |