Add error code to APIException
Add error code to APIException

Change-Id: I6663d5713d90651ee3623deafbcec3bde3eea506
Closes-bug: #1412486

StackStorm/python-mistralclient,openstack/python-mistralclient,openstack/python-mistralclient,StackStorm/python-mistralclient