Skip to content

Commit 377d467

Browse files
authored
Add 403 forbidden response in POST /progresses API contract (#227)
* chore: add 403 forbidden response format with example * chore: fix the order of response
1 parent 2b3f151 commit 377d467

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

progress/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@
6868
"message": "Unauthenticated User."
6969
}
7070
```
71+
- **Code:** 403
72+
- **Content:**
73+
```json
74+
{
75+
"message": "Unauthorized to write progress of task"
76+
}
77+
```
7178
- **Code:** 404
7279
- **Content:**
7380
```json
@@ -141,6 +148,14 @@
141148
"message": "Task with id 4ERr8WrizICemnQnMF0U1511 does not exist."
142149
}
143150
```
151+
when archived user creates progress
152+
Status 403 Forbidden
153+
154+
```json
155+
{
156+
"message": "Unauthorized to write progress of task"
157+
}
158+
```
144159

145160
## GET /progresses
146161

0 commit comments

Comments
 (0)