properly set HTTP error code when displaying "please provide a xxx.html" message.