Project: usergrid
Issue USERGRID-235: Inconsistent missing resource status code
Assuming valid credentials, I get a different status code depending on the authorization method. Bearer token: curl -X GET -i -H "Accept: application/json" -H "Authorization: Bearer XXX" 'http://localhost:8080/test-organization/test-app/dogs/fido' 404 error: Service resource not found Client id & Secret: curl -X GET -i -H "Accept: application/json" 'http://localhost:8080/test-organization/test-app/dogs/fido?client_id=XXX&client_secret=XXX' HTTP/1.1 401 Unauthorized Note: In both cases, the client receives the same body content: {"error":"service_resource_not_found","timestamp":1412358355742,"duration":0,"exception":"org.apache.usergrid.services.exceptions.ServiceResourceNotFoundException","error_description":"Service resource not found"}
Story points: 3