error message example

I just update also the code example shown with error pages