Project

General

Profile

Actions

Task #131

open

unify 404 handling

Added by Sam Pearson 3 months ago. Updated 23 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
04/06/2026
Due date:
% Done:

0%

Estimated time:
Engineering Effort:
medium
App Component:
API
Feature:

Description

There's stuff like this all over the place:

        updated = service.update_session(session_id, user_id, data)

        if not updated:
            return '', 404

But the db exceptions file has an "etitynotfound" exception.

We should use that everywhere instead of bespoke handling for 404s all over the place.


Related issues 1 (1 open0 closed)

Related to Bug #123: refactor exceptions to avoid superfluous message attributeNew03/26/2026

Actions
Actions #1

Updated by Sam Pearson 3 months ago

  • Related to Bug #123: refactor exceptions to avoid superfluous message attribute added
Actions #2

Updated by Sam Pearson 3 months ago

  • Related to deleted (Bug #123: refactor exceptions to avoid superfluous message attribute)
Actions #3

Updated by Sam Pearson 3 months ago

  • Related to Bug #123: refactor exceptions to avoid superfluous message attribute added
Actions #4

Updated by Sam Pearson 3 months ago

Not strictly blocked by issue 123 but 123 should certainly be fixed first.

Actions #5

Updated by Sam Pearson 23 days ago

  • Engineering Effort set to medium
  • App Component set to API
Actions

Also available in: Atom PDF