Add printing to the page when there is an error response