stig-manager icon indicating copy to clipboard operation
stig-manager copied to clipboard

Ensure Consistent HTTP Status Codes for Non-Existent Resources etc

Open Matte22 opened this issue 1 year ago • 1 comments

API needs to ensure that API endpoints follow consistent and appropriate HTTP status codes for various scenarios, especially when dealing with resources that do not exist. Specifically, we want to avoid situations where an endpoint returns a 200 OK status for a user or other resource that doesn’t exist. Instead, such cases should return a 404 Not Found status code.

That is only one example scenario, but I am sure there could be others.

Matte22 avatar Aug 29 '24 20:08 Matte22

see: updateUser

Matte22 avatar Sep 18 '24 22:09 Matte22