Raise exceptions when Loopia returns error codes.