Skip to content

Make Error Response Configurable #23

Description

@miketonks-form3

Currently pact-proxy returns a 500 response with an empty body when a pact does not match.

This causes problems debugging for two reasons:

  1. Our client code will retry multiple times on a 500 error, which fills the logs with noise.

  2. Our swagger client tries to unmarshall the empty body which gives a misleading error on the client side.

We would like to override the default error status code and response body. This could be configurable at a global level.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions