Seitenbau / mix-n-mock

The configurable mixing proxy for your web development needs
Apache License 2.0
5 stars 0 forks source link

Generalize error.error config #19

Closed ThomasR closed 8 years ago

ThomasR commented 8 years ago

Currently, the configuration

"error": {"error": "foo", …}

results in a generated response body:

{"faultCode": "foo"}

This should be more flexible. We want to have

"status": 404

which sends the HTTP status code. The response body should be taken from the file attribute. If file is missing, we send an empty body. status should default to 200.

ThomasR commented 8 years ago

Also, add documentation for the above!