500 Errors are now returned to the page correctly