Fixed bug: error page cannot show correct corresponding status code