Fix Power Automate Custom Connector Request Rejected (HTTP 200)
Question details
The user needs to resolve an issue where a Power Automate custom connector returns an HTTP 200 success status, but the response payload indicates that the requested URL was rejected.
- Product
- Power Automate
- Device & OS
- not provided
- Scenario
- Executing an API request through a custom connector in Power Automate.
- Observed behavior
- The custom connector returns an HTTP 200 status code, but the response body states the requested URL was rejected, whereas the exact same API request works perfectly in Postman and Python.
Ensure you have the exact working Postman request details, headers, and the OpenAPI definition for your Power Automate connector open for a side-by-side comparison.
Compare Power Automate Request with Working Postman Request
Identify discrepancies between the failing Power Automate connector and the successful Postman request by verifying all URL components, authentication methods, and headers.
Many API gateways and endpoints are sensitive to missing headers, extra slashes, or specific encoding types. Postman often adds hidden headers automatically, which may need to be explicitly defined in your custom connector.
Check that the base URL and endpoint path in the Power Automate connector exactly match the working Postman setup, avoiding double slashes or missing path parameters.
Review all authorization tokens and custom headers. Ensure that the 'Content-Type' and encoding settings are configured correctly in the connector definition.
Confirm that the JSON or XML payload structure generated by Power Automate perfectly mirrors the working payload in Python or Postman without unexpected formatting or hidden characters.
Review OpenAPI Definition and Gateway Policies
Ensure the custom connector's OpenAPI schema is valid and check for any API gateway or firewall restrictions that might reject the request.
Consult the Power Automate Community
If local troubleshooting fails, seek specialized help by sharing sanitized request details with the Microsoft community.
Enhance Your Workflow Documentation with WPS Office
While troubleshooting complex API integrations and automated workflows, you often need a reliable suite for documenting processes, editing JSON logs in text files, or managing data sets. WPS Office is a lightweight, completely free alternative to Microsoft Office that meets all your daily documentation needs.
- 1. Download and Install: Visit the official WPS Office website and download the free installer for your operating system.
- 2. Open Your Documentation: Launch WPS Office and open your existing Word or Excel documents to document your API payload structures.
- 3. Save and Export: Easily save your troubleshooting logs or export your custom connector guidelines to PDF for easy sharing with your team.

Frequently Asked Questions
Why does my API return HTTP 200 but the body says 'Request Rejected'?
This often happens when an intermediate server, such as a Web Application Firewall (WAF) or load balancer, blocks the request due to missing headers, invalid formatting, or security rules. The server is configured to return a 200 OK status to mask the exact internal routing error from potential attackers.
How can I view the raw HTTP request in Power Automate?
You can view the exact HTTP request details by going to the Flow Run History, selecting the specific failed run, and clicking 'Show raw inputs' or 'Show raw outputs' on the custom connector action step.
Why does my API work perfectly in Postman but fail in a custom connector?
Postman is designed to automatically add essential hidden headers (like Host, Accept, and User-Agent) and handle content formatting seamlessly. Power Automate custom connectors require explicit configuration for many of these properties in the OpenAPI definition.




