Morning! Quick question as I couldn't find it in t...
# help
b
Morning! Quick question as I couldn't find it in the docs or a suitable answer online anywhere: we're using a simple generic mapping in WireMock (in JSON) that returns a file with a name based on the SSN value it pulls from the request. So, if the request contains SSN
12345678
, we return a JSON body stored in a file
12345678.json
. That works when the file exists, but when it doesn't, WireMock returns an HTTP 500 because the response could not be served properly. I would like it to return a 404 instead.
o
I believe there was a feature request for that, but I cannot find a GitHub issue. Looking
🙌 1
b
By the way, for now knowing that WireMock does not support it is sufficient, we'll just accept it returns a 500. I think it would make a good feature, though 🙂
o
Could you please file an issue? It looks quite straightforward to implement so maybe somebody will pick it up
b
Will do!
👍 1
o
Thanks!