Add error pages handling
Merge remote-tracking branch 'origin/master'