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

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