#{verbatim}
<!DOCTYPE html>
@import play.exceptions.PlayException;
@args Exception exception

<html>
    <head>
        <title>Application error</title>
        <meta http-equiv="Content-Type" content="text/html; charset=@_response_encoding"/>
    </head>
    <body>

        @if ("DEV".equals(_play.mode.name())) {
            @e500(exception)
        } else {
            <h1>Oops, an error occured</h1>
            @if (exception instanceof PlayException) {
                <p>
                    This exception has been logged with id <strong>@(((PlayException)exception).getId())</strong>.
                </p>
            }
        }
    </body>
</html>
#{/verbatim}