add debug info to api exceptions