[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
Platform: 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 ]

https://git.opendaylight.org/gerrit/#/c/21662/

Comment by Tomas Cere [ 02/Jun/15 ]

send GET to: http://127.0.0.1:8181/restconf/operational/network-topology:network-topology/topology/topology-netconf/node/17830-sim-device/yang-ext:mount

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.

Generated at Wed Feb 07 19:54:37 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.