Avoid using HTTP 500 for unauthenticated requests #148
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description:
Currently, the backend is returning HTTP 500 Internal Server Error when a user is not authenticated. This status code should only be used when an actual server-side error occurs (e.g., unhandled exceptions, database failures, etc.).
Expected Behavior:
Why this matters:
Acceptance Criteria:
401or403appropriately.500is only returned for unexpected, unhandled errors in backend logic.Seeing “Acceptance Criteria” gave me Jira PTSD