Force error code by another way than by query string


For now, I force errors code with Prism mock by query string like this :

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,


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: