Add pending reason

Add pending reason from response to the exception for more detailed handling the exception in controller.