italia / daf

Data & Analytics Framework (DAF)
BSD 3-Clause "New" or "Revised" License
50 stars 32 forks source link

[catalog_manager] GET by uri returns 401 instead of 404 #306

Open luzzu-lab opened 6 years ago

luzzu-lab commented 6 years ago

Subject of the issue

When requesting the catalog for information about data that doesn't exist, the service returns a response with status 401 with message Error instead of a 404.

Your environment

Postman, curl

Steps to reproduce

Send a GET request to

http://api.daf.teamdigitale.test/catalog-manager/v1/catalog-ds/get/data-that-does-not-exist

with valid Authorization header.

Expected behaviour

Response should be a 404 for Not found with a meaningful error message if possible.

Actual behaviour

Response is 401 with message Error.