Anniepoo / swiplwebtut

A tutorial for the swipl web framework
109 stars 39 forks source link

exercise duplicated #1

Closed Anniepoo closed 6 years ago

Anniepoo commented 11 years ago

at bottom of 1_3

Exercise: Add a handler that says 'sorry, not here' to 1_3 when you try something like http://127.0.0.1:8000/this/is/invalid

at bottom of 5_1

Exercise: Provide yourself a nice error message instead of 404ing in response to an invalid path (hint, you need to complete the universe of paths). Test your code to make sure you get the same answers as before for some of the paths listed in the previous exercise.

To make it worse, the exercise in 6_2 builds on it

Anniepoo commented 9 years ago

and this should be mentioned

http://www.swi-prolog.org/pldoc/man?section=http-custom-error-page