pass along original error code for inspection