Commit dd907ab
authored
REST API: Fix incorrect 403 status code for invalid post ID in Comments controller.
`update_item()` was returning HTTP 403 (Forbidden) when a non-existent
post ID was provided. The correct status is 404 (Not Found), as the
resource is missing — not access-restricted.
This also makes `update_item()` consistent with `get_item()` in the
same controller, which already returns 404 for the same scenario.1 parent e12ddb3 commit dd907ab
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
920 | 920 | | |
921 | 921 | | |
922 | 922 | | |
923 | | - | |
| 923 | + | |
924 | 924 | | |
925 | 925 | | |
926 | 926 | | |
| |||
0 commit comments