Fix usage of the status code on the error page