Service throw 500 Internal Server Error if an invalid seismic tenant is passed in URL
The SDMS service throw 500 Internal Server Error if an invalid seismic tenant is passed in the URL. For example,
[GET] /seistore-svc/api/v3/utility/ls?sdpath=sd://dp1&wmode=dirs&limit=0&cursor=0
[PUT] /seistore-svc/api/v3/dataset/tenant/dp1/subproject/sample/dataset/sample.zgy/lock?openmode=read
The tenant dp1 is not a registered seismic tenant and hence both of the above API calls fail. But the response is a 500 internal server error even though there is not server side issue in this case. The user itself is not passing the valid seismic tenant while making these API calls.
What should be the correct response in this case? Should it be a 4XX response as this is a user side issue?