> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Customize Lock Error Messages

> Override the Classic Login error messages using Auth0 Lock to match your application's tone and explanations.

> [!WARNING]
>
> At this time, Auth0’s active development efforts are focused on Universal Login, and Classic Login no longer receives updates. To customize your login pages, Auth0 recommends [Advanced Customizations for Universal Login](/docs/docs/customize/login-pages/advanced-customizations).

You can customize the error messages that will be displayed in certain situations by providing a `languageDictionary` option. A full listing of available `languageDictionary` fields to customize can be found in the GitHub repository's [English Dictionary file for Lock](https://github.com/auth0/lock/blob/master/src/i18n/en.js). Below is an example of some customized error messages:

## Custom errors in Rules

If you are returning custom error codes from a [rule](/docs/docs/customize/rules) or a custom database script, you can handle custom errors:

* In your application's redirect URL by reading the `error` and `error_mesage` query string parameters.
* By redirecting the user back to your hosted pages with a custom error message and displaying the message with a [flash message](/docs/docs/libraries/lock/lock-api-reference).

## Learn more

* [Lock for Web](/docs/docs/libraries/lock)
