Exception should raise with status code

Fixes bug 1103330

Change-Id: Ia706a76429027a4627ea7d12eeee3badae8c16b5
Merge "Exception should raise with status code"