Added completion when custom error code is present.