Incorrect responses with incorrect token
Hello, it seems there is an issue with processing incorrect Auth tokens.
- Request:
curl --location 'https://community.gcp.gnrg-osdu.projects.epam.com/api/oetp-client/v2/dataspaces' \
--header 'data-partition-id: osdu' \
--header 'Authorization: Bearer <correct_token>'
Response: 200 OK
- Incorrect token:
'Authorization: Bearer <incorrect_token>'
Response: 500 ISE
{ "description": "Unknown Error" }
Expected: 401
- Without token:
Response: 403 Forbidden
{ "statusCode": 403, "message": "Forbidden resource", "error": "Forbidden" }
Expected: 401