Handling error in workflow but want to see "failure" in Run History

I was surprised to see that a error response that is not 200 did not log as an error in the run history