Currently pact-proxy returns a 500 response with an empty body when a pact does not match.
This causes problems debugging for two reasons:
-
Our client code will retry multiple times on a 500 error, which fills the logs with noise.
-
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.
Currently
pact-proxyreturns a 500 response with an empty body when a pact does not match.This causes problems debugging for two reasons:
Our client code will retry multiple times on a 500 error, which fills the logs with noise.
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.