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.
Final Edit: Marc Liyanage's answer is the most correct for this question now.
No, you're not, I don't think it is possible to rewrite a status code.
I cannot add this as a comment (new user) but one workaround is:
I've tried using Map Local, which would be perfect for this, but Charles adds it's own 200 OK status code to all files returned.
Edit: Also you can use breakpoints on individual responses and modify the code.