# [Android Components](../../../README.md) > Browser > Errorpages Responsive browser error pages for Android apps. ## Usage ### Setting up the dependency Use Gradle to download the library from [maven.mozilla.org](https://maven.mozilla.org/) ([Setup repository](../../../README.md#maven-repository)): ```Groovy implementation "org.mozilla.components:browser-errorpages:{latest-version}" ``` ### Quick Start If you have an `ErrorType` already at hand, and you want to generate an error page for it with the default template: ```kotlin val errorType: ErrorType = ErrorType.Unknown ErrorPages.createErrorPage(context, errorType) // OR ErrorPages.createErrorPage(context, errorType, R.raw.custom_html, R.raw.custom_css) ``` If you want to use your own custom HTML template, make sure that you have the following attributes within percentage values (`%`) added to your document so that they can be populated by the engine: - `pageTitle` - Title of the page. - `css` - The location of where to place the CSS contents in the document. - `messageShort` - A one line description of the error message Gecko and System engines map their respective error codes to the `ErrorType` values. - `messageLong` - A more detailed message about the error that was seen. - `button` - Button text that can be clicked on. This is commonly used to reload the page. For example, here is an HTML error page that will have only a title, short message and some CSS: ```html