Changing http response status code for given url in chrome Changing http response status code for given url in chrome google-chrome google-chrome

Changing http response status code for given url in chrome


Status is not a HTTP response header. Status Code is HTTP response code and Chrome does not allow to modify the response code of a request.

Here is a suggestion

  • Use some mock service like mocky.io and create a request which serves 400 or 404
  • Use Requestly to setup a Redirect Rule which redirects your original request to URL of your mock request


In DevTools on the Network panel, right click a resource and select Block Request URL or Block Request Domain.

Does that help in your use case?