Open
Description
API Issue Report
Title
GET /api/v1/settings/sources/{id} – Internal Server Error when invalid or non-existent ID is provided
Description
When making a GET
request to the /api/v1/settings/sources/{id}
endpoint with an invalid or non-existent ID, the API returns a 500 Internal Server Error
.
Instead, the API should handle this case gracefully by returning a 404 Not Found
response with a clear and user-friendly error message.
Steps to Reproduce
- Send a
GET
request to/api/v1/settings/sources/99999
(assuming ID99999
does not exist). - Observe the response: the server returns a
500 Internal Server Error
.
Expected Behavior
The API should return a 404 Not Found
response with a descriptive message like:
"Source with ID 99999 not found."
Actual Behavior
Metadata
Metadata
Assignees
Labels
No labels