# Error Codes

When using the AutoContent API, you may encounter various error codes that provide specific information about what went wrong. This page lists all possible error codes and their meanings.

## Error Code Reference

| Code | Name                                            | Description                                                        |
| ---- | ----------------------------------------------- | ------------------------------------------------------------------ |
| 0    | NotSet                                          | No error occurred                                                  |
| 1    | LoadingForTooLong                               | Resource loading for too long. Retry with a different browser      |
| 100  | InternalError                                   | An internal server error occurred                                  |
| 201  | SubscriptionExpired                             | Your subscription has expired                                      |
| 202  | SubscriptionLimitReached                        | You have reached your subscription limit                           |
| 301  | InvalidOutputType                               | The specified output type is invalid                               |
| 302  | InvalidResourceType                             | Invalid resource type. Valid types are website, youtube, text, pdf |
| 501  | GoogleNotebookLM\_InvalidResource               | Invalid resource type. Valid types are website, youtube, text, pdf |
| 502  | GoogleNotebookLM\_ErrorFetchingUrl              | Google NotebookLM says: Error fetching the URL                     |
| 503  | GoogleNotebookLM\_RestrictedSource              | Google NotebookLM says: Restricted source                          |
| 504  | GoogleNotebookLM\_PaywalledSource               | Google NotebookLM says: Paywalled source                           |
| 505  | GoogleNotebookLM\_ResourceNotFound              | Google NotebookLM says: Resource not found                         |
| 506  | GoogleNotebookLM\_ResourceNotReachable          | Google NotebookLM says: Resource not reachable                     |
| 507  | GoogleNotebookLM\_ResourceEmpty                 | Google NotebookLM says: Resource empty                             |
| 508  | GoogleNotebookLM\_YouTubeTranscriptNotAvailable | Google NotebookLM says: YouTube transcript not available           |
| 509  | GoogleNotebookLM\_ResourceNotImported           | Google NotebookLM says: Unable to import source. Please try again. |
| 510  | GoogleNotebookLM\_PodcastNotPublic              | Google NotebookLM says: Podcast is not public                      |

## Error Categories

### General Errors (0-99)

* **NotSet (0)**: No error occurred
* **LoadingForTooLong (1)**: Resource took too long to load

### System Errors (100-199)

* **InternalError (100)**: Server-side error occurred

### Subscription Errors (201-299)

* **SubscriptionExpired (201)**: Your subscription needs renewal
* **SubscriptionLimitReached (202)**: You've hit your plan's limits

### Validation Errors (301-399)

* **InvalidOutputType (301)**: Check the output type parameter
* **InvalidResourceType (302)**: Ensure you're using supported resource types

### Google NotebookLM Integration Errors (501-599)

These errors occur when using Google NotebookLM integration features:

* **501-510**: Various NotebookLM-specific issues ranging from invalid resources to import failures

## Handling Errors in Your Code

When you receive an error response from the API, check the `errorCode` field in the response to determine the specific issue:

```json
{
  "errorCode": 302,
  "message": "Invalid resource type. Valid types are website, youtube, text, pdf",
  "status": "error"
}
```

### Recommended Actions

* **Codes 201-202**: Check your subscription status and upgrade if needed
* **Codes 301-302**: Validate your request parameters
* **Codes 501-510**: Check the source URL or resource you're trying to process
* **Code 1**: Try again with a different browser or wait a moment
* **Code 100**: Contact support if the issue persists

## Getting Help

If you encounter an error that you can't resolve:

1. Check this error code reference
2. Review your request parameters
3. Contact our support team with the error code and details

For more assistance, visit our [support page](/support.md).


---

# 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.autocontentapi.com/error-codes.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.
