Force error code by another way than by query string

Hi,

For now, I force errors code with Prism mock by query string like this :
https://prism_url?__code=401

Recently, architecture change in my project no longer allows me to use query parameters to force prism error codes.

Is there another way with Prism to force error codes another way than by query ?

For example by entering a CLI command or other ?

Thank you,

Damien

Hey Damnien,

I understand you’re not able to set a query parameter, but are you able to set a header?

Prism also supports configuring the same mock options using a Prefer header. Check out the Prism docs: https://stoplight.io/p/docs/gh/stoplightio/prism/docs/getting-started/03-cli.md#force-response-status