# NotFoundError<!-- -->

Raised when the Apify API returns an HTTP 404 Not Found response.

### Hierarchy

* [ApifyApiError](https://docs.apify.com/api/client/python/api/client/python/reference/class/ApifyApiError.md)
  * *NotFoundError*

## Index[**](#Index)

### Methods

* [**\_\_init\_\_](https://docs.apify.com/api/client/python/api/client/python/reference/class/NotFoundError.md#__init__)
* [**\_\_new\_\_](https://docs.apify.com/api/client/python/api/client/python/reference/class/NotFoundError.md#__new__)

## Methods<!-- -->[**](#Methods)

### [**](#__init__)\_\_init\_\_

* ****\_\_init\_\_**(response, attempt, \*, method): None

- Inherited from [ApifyApiError.\_\_init\_\_](https://docs.apify.com/api/client/python/api/client/python/reference/class/ApifyApiError.md#__init__)

  Initialize the API error from a failed response.

  ***

  #### Parameters

  * ##### response: [HttpResponse](https://docs.apify.com/api/client/python/api/client/python/reference/class/HttpResponse.md)

    The failed HTTP response from the Apify API.

  * ##### attempt: int

    The attempt number when the request failed (1-indexed).

  * ##### optionalkeyword-onlymethod: str = <!-- -->'GET'

    The HTTP method of the failed request.

  #### Returns None

### [**](#__new__)\_\_new\_\_

* ****\_\_new\_\_**(response, attempt, \*, method): Self

- Inherited from [ApifyApiError.\_\_new\_\_](https://docs.apify.com/api/client/python/api/client/python/reference/class/ApifyApiError.md#__new__)

  Dispatch to the subclass matching the response's HTTP status code, if any.

  ***

  #### Parameters

  * ##### response: [HttpResponse](https://docs.apify.com/api/client/python/api/client/python/reference/class/HttpResponse.md)
  * ##### attempt: int
  * ##### optionalkeyword-onlymethod: str = <!-- -->'GET'

  #### Returns Self
