# API response\_code NOT\_FOUND

**Error Description**

Customers may encounter an API response indicating NotFound. This response typically appears as:

```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  <response xmlns="....." response_code="NOT_FOUND" generated_at="2023-05-25T09:52:49+00:00">
    <message>No data for the event: sr:match:41345021:prematch</message>
  </response
```

**Applies to**

UOF SDK - All

**Symptoms**

When utilizing Sport Event or Market methods, if the result is not cached within the SDK, it triggers a call to the appropriate API endpoint. Due to the nature of the API, these requests may occasionally fail. If the HTTP status code received is NOT\_FOUND, it may indicate either an incorrect request ID or that the API service is temporarily unable to provide the expected results. Such cases are reflected in the REST logs via response\_code with the value NOT\_FOUND. Depending on the exception handling strategy employed, users may receive an exception in the calling code.

**Resolution**

1. Verify the validity of the request (e.g., correct match ID, competitor ID, etc.).
2. Retry the request later on (no throttling for failed requests); sometimes, this error may be due to a temporary API issue.
3. For non-critical data, implementing a retry strategy in a separate thread invoked at a later time is recommended.

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sportradar.com/uof/error-handling/error-catalogue/api-response_code-not_found.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
