Skip to content

Answer invalid alert settings with 400 - #304

Merged
snake14 merged 1 commit into
6.x-devfrom
4xx-client-errors
Nov 9, 2026
Merged

snake14 merged 1 commit into
6.x-devfrom
4xx-client-errors

Conversation

@snake14

@snake14 snake14 commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Description

The API now answers invalid alert settings with HTTP 400 instead of HTTP 200 with an error message, so API clients can tell a rejected request from a successful one.

Issue No

N/A

Steps to Replicate the Issue

  1. Call CustomAlerts.addAlert with an invalid period
  2. Before: HTTP 200 with an error message
  3. After: HTTP 400 with the same message

Checklist

  • [✔] Tested locally or on demo2/demo3?
  • [✔] New test case added/updated?
  • [NA] Are all newly added texts included via translation?
  • [NA] Are text sanitized properly? (Eg use of v-text v/s v-html for vue)
  • [NA] Version bumped?
  • [✔] I have understood, reviewed, and tested all AI outputs before use
  • [✔] All AI instructions respect security, IP, and privacy rules
  • [NA] Documentation updated?

@snake14
snake14 requested a review from a team November 8, 2026 23:50

@lachiebol lachiebol left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@snake14
snake14 merged commit 2794fa6 into 6.x-dev Nov 9, 2026
36 of 37 checks passed
@snake14
snake14 deleted the 4xx-client-errors branch November 9, 2026 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants