Skip to content

Better communicate our limits in Core API errors #8130

Description

@khvn26

Currently, whenever a user hits a limit or gate of some sort, they are usually presented with a generic 400/403 response with little guidance on where to go next.
The CLI uses heuristics to make a best guess, but this approach is not very scalable.

We'd like to standardise these errors so API clients can better infer the context, and properly inform the users.

Flagsmith has two kinds of limits:

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiIssue related to the REST API

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions