[CONTROLLER-1074] Wrong return status code when sending a request to a non-existing mount-point Created: 17/Dec/14 Updated: 25/Jul/23 Resolved: 04/Jun/15 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | restconf |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Tomas Cere | Assignee: | Tomas Cere |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 2521 |
| Description |
|
When sending f.ex get request to a nonexisting mount-point according to the RESTCONF rfc the return status code should be 404 since the resource cannot be found, instead of 400 which should be used for malformed syntax. |
| Comments |
| Comment by Vaclav Demcak [ 02/Jun/15 ] |
| Comment by Tomas Cere [ 02/Jun/15 ] |
|
while device is not connectes, so no mount-point exists yet. Status code returned should be 404 not found since mount instance cannot be found instead of 400 which means bad syntax. |