Search code examples
proxyurl-rewritingcharles-proxy

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


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?


Solution

  • 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