Skip to main content
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. Below is an example of some customized error messages:

Custom errors in Rules

If you are returning custom error codes from a rule 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.

Learn more