turned the error_*() functions into static helpers inside a ErrorPage class