Is it possible to rewrite a status code with Charles Proxy?

Thomas picture Thomas · Jan 16, 2013 · Viewed 36.2k times · Source

I'm using Charles Proxy to rewrite a response from an API for testing purpose.

If I set a breakpoint, I am allowed to completely rewrite the raw response as I wish.

However, if I want to automate it via the "Rewrite" tool, I'm stuck, it seems that you cannot modify the status code:

Rewrite Rule panel

Do you know if I'm missing something?

Answer

Marc Liyanage picture Marc Liyanage · Sep 7, 2013

An Update: Version 3.8 of Charles Proxy was just released, with the ability to rewrite the status. From the release notes:

  • Rewrite tool: allow rewriting of response status

This version's rewrite UI adds a new "Response Status" rule type:

enter image description here