2

I hosted my static web pages on Google App Engine (Java). It does not have any server side coding.

I used HTML5 Boilerplate code as my base. It has page called 404.html. I would like to show this 404.html page when there is page not found error.

How can I show a custom 404 page in Google App engine?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Fizer Khan
  • 88,237
  • 28
  • 143
  • 153

2 Answers2

1

You can set custom error responses in your app.yaml file.

Peter Knego
  • 79,991
  • 11
  • 123
  • 154
1

In Java you can set up error handlers in your web.xml file (which is located in the app's WAR under the WEB-INF/ directory).

<error-page>
    <error-code>500</error-code>
    <location>/errors/servererror.jsp</location>
</error-page>
Scott Bartell
  • 2,801
  • 3
  • 24
  • 36