Changed code example for custom 404 error pages

Return the correct HTTP status code on custom 404 error pages. See issue #141.