Added a way to force the platform to throw an error.

It requires a switch to be on and for a specific header to be present.
Merge pull request #6114 from guardian/forced-responses

Added a way to force the platform to throw an error.