reworked error handling so MediaWiki can handle error states instead of having our own error pages