Create own api exception