Skip to content

Improve Input Validation #21

Description

@aliviahossain

A robust API should handle bad input gracefully. Currently, if you provide a non-numeric value for the size parameter, the API crashes with a "500 Internal Server Error". A better approach is to validate the input and return a user-friendly "400 Bad Request" error.

PLEASE ASSIGN ME THIS ISSUE UNDER THE GSSOC' 25 LABEL. THANK YOU.

Activity

  1. github-actions commented on Sep 21, 2025

    @github-actions

    Thank you for raising this issue!

    We'll review it as soon as possible. We truly appreciate your contributions! ✨

    Meanwhile make sure you've visited the README.md, CONTRIBUTING.md, and CODE_OF_CONDUCT.md before creating a PR for this. Also, please do NOT create a PR until this issue has been assigned to you. 😊

  2. Gupta-02 commented on Oct 11, 2025

    @Gupta-02
    Contributor

    Assign me this

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions