Passing exceptions from API to portal