added application error handler and static html error pages