|
Post by AMI_ivywang on Jul 12, 2024 5:52:16 GMT
According to the SPEC, '404 Not Found - Request specified a URI of a resource that does not exist.' If a resource that does not support 'POST' has been deleted, should we return 405 or 404 when we make a request on this non-existent resource? The test steps are as follows: 1. GET /redfish/v1/SessionService/Sessions/{ID} -> return status code 200, response header allow: GET/DELETE 2. DELETE /redfish/v1/SessionService/Sessions/{ID} -> return status code 204 3. GET /redfish/v1/SessionService/Sessions/{ID} -> return status code 404 4. POST /redfish/v1/SessionService/Sessions/{ID} -> should we return 405 or 404?
|
|
|
Post by mraineri on Jul 12, 2024 12:09:41 GMT
That would be a 404; the URI doesn't exist at that point. From what I've seen, web servers tend to verify the URI is valid before checking if the method is valid.
|
|