Checked if error from response was present first