> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://learning.postman.com/llms.txt. For full content including API reference and SDK examples, see https://learning.postman.com/llms-full.txt.

# Requests to my mock servers aren't returning the expected response

> You are experiencing one of the following issues I am receiving the error mockRequestNotFoundError . I am receiving the error invalidCredentialsError . How t...

## You are experiencing one of the following issues

* I am receiving the error [*mockRequestNotFoundError*](#h_01FGKWRD5YFJEC5WY8FH82H1D6) .
* I am receiving the error [*invalidCredentialsError*](#invalidCredentialsError) .

## How to unblock yourself

### *mockRequestNotFoundError*

Two possible reasons might cause this error:

* **The HTTP method is incorrect:** Ensure the HTTP method matches the saved example for the response to be returned.

* **The path URL is incorrect:** Make sure the path in the request URL matches one of the saved examples for the mock server to match the request.

* **Note:** Learn more about the matching algorithm of Mocks in the Learning Center: [Understanding example matching](/docs/design-apis/mock-apis/matching-algorithm/).

### *invalidCredentialsError*

This error means that your mock is private and requires a Postman API key to be passed in the request header named *x-api-key*.

* Make sure you have properly [generated a Postman API key](/docs/developer/postman-api/intro-api/#generating-a-postman-api-key) .
* Make sure you have properly [configured the request header](/docs/sending-requests/requests/#configuring-request-headers) .

## Still need help?

[Submit a support request](https://support.postman.com/hc/en-us/requests/new/) and include the following information:

* A screenshot of your mock server settings.
* Your mock's URL and Mock ID.
* A screenshot of the impacted example/request and how they are configured.
* Steps you've tried to resolve the issue.

***

Have more questions? [Submit a request](/help/submit-request)

***