Commit a1a9615
authored
fix(aci): Change response from 404 to 400 when there's an issue with billing metric alerts (#112614)
# Description
Currently, we return a 404 when there's a billing issue. This leads to a
confusing user experience and there aren't clear next steps.
This PR changes the 404 response to 400; to greater illustrate that it's
an issue with the request data / state. The detail information also
includes the recommendation to checkout your organization billing
settings to give users next steps.1 parent 5dc4ee4 commit a1a9615
File tree
2 files changed
+8
-4
lines changed- src/sentry/workflow_engine/endpoints
- tests/sentry/workflow_engine/endpoints
2 files changed
+8
-4
lines changedLines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
76 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
162 | 164 | | |
163 | 165 | | |
164 | 166 | | |
| |||
0 commit comments