Skip to content

API Design: Implement Proper HTTP Exceptions #11

Description

@ashrafee-dev
  • The API currently returns None or a dictionary with an "error" key when a rate limit is hit or a file type is invalid, while still returning a 200 OK status.

Task: Use FastAPI's HTTPException to return proper 400 Bad Request or 429 Too Many Requests status codes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions