Skip to content

Invalid country code returns 500 instead of 400/501 #83

@aditya047-stack

Description

@aditya047-stack

Bug Description

when Ppassing invalid/unsupported country code returns
500 Internal Server Error instead of proper error codes.Hence it is bug.

Steps to Reproduce

GET /country/subdivisions?code=IR → should be 501, gets 500

-not_implemented_501() is missing in models/responses.py

Proposed Fix

  1. Add not_implemented_501() in responses.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions