Skip to content

Commit

Permalink
[#8] Update status code when not found 400 to 404
Browse files Browse the repository at this point in the history
  • Loading branch information
vdennis committed Dec 9, 2020
1 parent 828b7ae commit bbdfa32
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions doc/users.md
Original file line number Diff line number Diff line change
Expand Up @@ -511,12 +511,12 @@ Request Payload
}
```

Response HTTP Status Code : 400
Response HTTP Status Code : 404

Response Payload
```
{
"status_code": "cdc-400",
"status_code": "cdc-404",
"status_message": "region_id not found in regions",
"data": null
}
Expand Down Expand Up @@ -590,7 +590,7 @@ Response HTTP Status Code : 400
Response Payload
```
{
"status_code": "cdc-400",
"status_code": "cdc-404",
"status_message": "branch_id not found in branches",
"data": null
}
Expand Down Expand Up @@ -662,12 +662,12 @@ Request Payload
}
```

Response HTTP Status Code : 400
Response HTTP Status Code : 404

Response Payload
```
{
"status_code": "cdc-400",
"status_code": "cdc-404",
"status_message": "kios_id not found in kios",
"data": null
}
Expand Down Expand Up @@ -1206,7 +1206,7 @@ Response HTTP Status Code : 404
Response Payload
```
{
"status_code": "cdc-400",
"status_code": "cdc-404",
"status_message": "company_id not found in companies",
"data": null
}
Expand Down Expand Up @@ -1266,12 +1266,12 @@ Request Payload
}
```

Response HTTP Status Code : 400
Response HTTP Status Code : 404

Response Payload
```
{
"status_code": "cdc-400",
"status_code": "cdc-404",
"status_message": "region_id not found in regions",
"data": null
}
Expand Down Expand Up @@ -1334,12 +1334,12 @@ Request Payload
}
```

Response HTTP Status Code : 400
Response HTTP Status Code : 404

Response Payload
```
{
"status_code": "cdc-400",
"status_code": "cdc-404",
"status_message": "branch_id not found in branches",
"data": null
}
Expand Down Expand Up @@ -1402,12 +1402,12 @@ Request Payload
}
```

Response HTTP Status Code : 400
Response HTTP Status Code : 404

Response Payload
```
{
"status_code": "cdc-400",
"status_code": "cdc-404",
"status_message": "kios_id not found in kios",
"data": null
}
Expand Down

0 comments on commit bbdfa32

Please sign in to comment.