1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-31 00:16:47 +01:00
unleash.unleash/src/lib/error
Gastón Fournier feb6825023
chore: add a generic error for limit's exeeded (#6452)
## About the changes
We don't have a meaningful error for limits established by the
application. This could be a good starting point.

The error code is 400 cause I couldn't find anything better. 

The name of the error was picked from UnleashApiErrorTypes:
2d8e9f87ff/src/lib/error/unleash-error.ts (L4-L34)
2024-03-06 19:17:31 +01:00
..
archivedfeature-error.ts fix: return 400 when enabling env of archived toggle (#6049) 2024-01-26 16:02:17 +02:00
bad-data-error.ts Chore: remove "dataPath" from data OpenAPI data errors. (#5272) 2023-11-07 09:26:14 +01:00
content-type-error.ts refactor: move status codes into classes (#4200) 2023-07-11 09:20:11 +02:00
db-error.ts Wip/environments (#880) 2021-07-07 10:46:50 +02:00
disabled-error.ts refactor: move status codes into classes (#4200) 2023-07-11 09:20:11 +02:00
exceeds-limit-error.ts chore: add a generic error for limit's exeeded (#6452) 2024-03-06 19:17:31 +01:00
feature-has-tag-error.ts refactor: move status codes into classes (#4200) 2023-07-11 09:20:11 +02:00
forbidden-error.ts refactor: move status codes into classes (#4200) 2023-07-11 09:20:11 +02:00
from-legacy-error.ts feat: biome lint (#4853) 2023-09-29 14:18:21 +02:00
incompatible-project-error.ts refactor: move status codes into classes (#4200) 2023-07-11 09:20:11 +02:00
index.ts fix: export NotFoundError and ISegmentService in internals.ts (#4997) 2023-10-11 14:31:45 +03:00
invalid-operation-error.ts refactor: move status codes into classes (#4200) 2023-07-11 09:20:11 +02:00
invalid-token-error.ts refactor: move status codes into classes (#4200) 2023-07-11 09:20:11 +02:00
minimum-one-environment-error.ts refactor: move status codes into classes (#4200) 2023-07-11 09:20:11 +02:00
name-exists-error.ts refactor: move status codes into classes (#4200) 2023-07-11 09:20:11 +02:00
not-implemented-error.ts refactor: move status codes into classes (#4200) 2023-07-11 09:20:11 +02:00
notfound-error.ts refactor: move status codes into classes (#4200) 2023-07-11 09:20:11 +02:00
operation-denied-error.ts refactor: move status codes into classes (#4200) 2023-07-11 09:20:11 +02:00
owasp-validation-error.ts refactor: move status codes into classes (#4200) 2023-07-11 09:20:11 +02:00
password-mismatch.ts refactor: move status codes into classes (#4200) 2023-07-11 09:20:11 +02:00
password-undefined.ts refactor: move status codes into classes (#4200) 2023-07-11 09:20:11 +02:00
pattern-error.ts 1-1334: show short error message when validation fails (#4617) 2023-09-06 10:20:10 +00:00
permission-error.ts Biome1.5.1 (#5867) 2024-01-12 09:25:59 +00:00
project-without-owner-error.ts refactor: move status codes into classes (#4200) 2023-07-11 09:20:11 +02:00
role-in-use-error.ts refactor: move status codes into classes (#4200) 2023-07-11 09:20:11 +02:00
unauthorized-error.ts refactor: move status codes into classes (#4200) 2023-07-11 09:20:11 +02:00
unleash-error.test.ts Chore: remove "dataPath" from data OpenAPI data errors. (#5272) 2023-11-07 09:26:14 +01:00
unleash-error.ts chore: add a generic error for limit's exeeded (#6452) 2024-03-06 19:17:31 +01:00
used-token-error.ts refactor: move status codes into classes (#4200) 2023-07-11 09:20:11 +02:00