Simulate HTTP Status codes — 400, 404, 500, etc using Requestly

Create a mock API using Requestly

Requestly has a Mock Server capability to create a Mock API response.

Mock with 500 Status Code

Redirecting the actual API endpoint to the Mock Server endpoint.

Redirect Blinkit Search API to a mock API simulating 404 status code

Removing Content-Security-Policy Headers

Sometimes redirection to mock API won’t work due to Content-Security-Policy- connect-src directive, which restricts the URLs loaded using script interfaces.

Requestly Marketplace

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Requestly

Requestly

Setup redirects, modify headers, switch hosts, insert user scripts and much more. Install it on Chrome & Firefox and join our family of more than 100,000 devs!