only set response[error] if it is not already set