Added throws exception to httphandler