Respect `Prefer` header with validation proxy when server returns 501
Summary
I was able to use Prefer header to control returned mock response when using mock-server (Prefer: example=example-key). Then I switched to validation-proxy , hard-coded my upstream sever to return 501 for all requests and send a request to the validation-proxy with Prefer header as I did with mock-server. Surprisingly, it didn't work. I always returned the first example.
Is this how the validation-proxy is supposed to work?
Additional context
Prism: 4.4.0 (get via docker)
Hey @hieucd04 - Sorry this one got lost.
Your use case makes sense and our documentation does give the impression that unimplemented ops will be mocked, so it stands to reason that the Prefer header would be used do determine the correct way to mock.
We'll take a look at prioritizing this.
Hey team! Please add your planning poker estimate with Zenhub @EdVinyard @daniel-white @brendarearden @matthewmurphy