Simulating 500 HTTP status code in Create Tweet API on Twitter

How to Simulate API error responses using Requestly

Requestly is a tool that intercepts all the network requests and allows users to modify them. It enables users to Modify Headers, Redirect URLs, Switch hosts, Mock API responses, Delay network requests, Insert custom scripts. It is available as a desktop app and browser extension on all major browsers.

Simulating 500 status code when Tweeting

I created a mock API using requestly setting Status Code as 500.

Mock for simulating 500 error response on Twitter
Redirect Rule redirecting to mock API
Requestly Marketplace
500 error response simulated when tweeting



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


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!