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

Solution 1:

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

Solution 2:

1- Select Tools > Rewrite or OPTION + CMD + R

Rewrite selection


2- Select Enable Rewrite and then select Add

Enable Rewrite selection


3- Fill the fields with your details

Details


4- Add type and action

Type and Action


5- Select type of action - Response Status for our case -, write value to be changed -500-, write value for replace -200-

Configure Type and Action


Final Step:

6- You are ready to manipulate status code of your response with Charles

Finally

Official site of Charles Web Debugging Proxy