Updated API Layer to Test Exception