It is best to create your own global object, overload onError (...) and display your own page, rather than the default.
Details can be found in the documentation here.
Given how useful the default error page is, I like to keep these errors during development and show something more convenient to produce. Thus, I usually do something like:
public class Global extends GlobalSettings { @Override public Result onError(Http.RequestHeader requestHeader, Throwable throwable) { if (Application.isDevelopment()) { return super.onError(requestHeader,throwable); }
source share