#noref fix error code on api errors