for common error cases still write out an error