Skip to content

Customize the default response when no handler is configured #383

@azmeuk

Description

@azmeuk

no_handler_status_code is nice to set a 404 status instead of 500 when no handler has been defined. However it would be nice if the full default response was customizable.

I test an API where all responses must be JSON, 404 or 500 pages included.
Some URLs I check are built dynamically, so it would not be very convenient to prepare pytest-httpserver for all those URLs. A customizable default response here would be a bliss.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions