logo
search
Others

Fix Power Automate Custom Connector Request Rejected (HTTP 200)

Maira MehtabMaira Mehtab Sep 22, 2026 868 views

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.
Before you start

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.

Solution 1Recommended

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.

1
Verify Base URL and Path

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.

2
Check Authentication and Headers

Review all authorization tokens and custom headers. Ensure that the 'Content-Type' and encoding settings are configured correctly in the connector definition.

3
Inspect the Request Body

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.

Free Microsoft Office alternative

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. 1. Download and Install: Visit the official WPS Office website and download the free installer for your operating system.
  2. 2. Open Your Documentation: Launch WPS Office and open your existing Word or Excel documents to document your API payload structures.
  3. 3. Save and Export: Easily save your troubleshooting logs or export your custom connector guidelines to PDF for easy sharing with your team.
Highly compatible with Microsoft Excel, Word, and PowerPoint formats.Lightweight software that installs quickly and runs smoothly alongside heavy developer tools.Free built-in PDF editing tools for compiling and sharing API documentation.Clean, familiar user interface requiring zero learning curve for Office users.
microsoft office alternative - wps office

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.