only set response error if one was returned