updates intercept callback signature
internal_error -> precondition_failed