-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: return 404 instead of 500 for missing collections
- Replace string rejection with TaxiiNotFoundException in repository - Remove Promise constructor anti-pattern in findOne method - Add debug logging for collection lookups - Update JSDoc to document exception behavior The /collections/{id} endpoint now correctly returns a 404 status when a collection is not found in the database, rather than a 500 internal server error.
- Loading branch information
Showing
2 changed files
with
51 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters