Added support for errors, removed warning state for expected failure and unexpected success.